Professional Documents
Culture Documents
Share
For many engineers and administrators, maintaining a Linux system can be a daunting task, especially if there’s limited time or
experience. Working in shell mode, editing files, restarting services, performing installations, configuring scheduled jobs (Cron Jobs) and
much more, requires time, knowledge and patience.
One of the biggest challenges for people who are new to Linux, is to work with the operating system in an easy and manageable way,
without requiring to know all the commands and file paths in order to get the job done.
All this has now changed, and you can now do all the above, plus a lot more, with a few simple clicks through an easy-to-follow web
interface. Sounds too good to be true? Believe it or not, it is true! It's time to get introduced to ‘Webmin’.
Webmin is a freeware program that provides web-based interface for system administration and is a system configuration tool for
administrators. One of Webmin's strongest points is that it is modular, which means there are hundreds of extra modules/addons that can
be installed, to provide the ability to control additional programs or services someone might want to install on their Linux system.
Here are just a few of the features supported by Webmin, out of the box:
The great part is that webmin is supported on all Linux platforms and is extremely easy to install. While our example is based on
Webmin's installation on a Fedora 16 server using the RPM package, these steps will also work on other versions such as Red Hat,
CentOS and other Linux distributions.
Before we dive into Webmin, let's take a quick look at what we've got covered:
Webmin Installation
# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
You can now login to https://Fedora-16:10000/ as root with your root password. To ensure you are able to login into your webmin
administration interface, simply use the following URL: https://your-linux-ip:10000 , where "your-linux-ip" is your Linux server's or
workstation's IP address.
RUNNING WEBMIN
Open Firefox or any other browser, and type the URL https://Fedora-16:10000/ :
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 2/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
You will be greeted with a welcome screen. Login as root with your root password. Once you are logged in, you should see the system
information:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 3/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
You can add users or delete them from this window. If you want to change the parameters of any user, you can do so. By clicking on any
user, you can see the groups and privileges assigned to them. These can be changed as you like. For example, if you select the user
"root", you can see all the details of the user as shown below :
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 4/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
By selecting the adjacent tab in the "Users and Groups" window, you can see the "Local Groups" as well:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 5/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
Here, you can see the members in each group by selecting that group. You can delete a group or add a new one. You can select who will
be the member of the group, and who can be removed from a group. For example, you can see all the members in the group "mem", if
you select and open it:
Here, you will be allowed to create a new group or delete selected groups. You can also add users to the groups or delete them as
required. If required, you can also change group ID on files and modify a group other modules as well.
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 6/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
You can select other type of file system you would like to mount. Select it from the drop down menus as shown:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 7/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
By selecting a mounted file system, you can edit its details such as whether it should be mounted at boot time, left as mounted or unmount
it now, check the file system at boot time. Mount options like read-only, executable, permissions can be set here.
VHost is widely setup on almost all control panel mechanism on /home location, since Users & Groups, FTP server, User shell, Apache
and several other directives are constructed on this /home partition. Therefore, home should be created as a Logical Volume on a Linux
native File system (ext3). Here it is assumed there is already a /home partition on the system.
You can set the quotas by selecting “Disk & Network Filesystems” under “System”:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 8/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
This allows you to create and edit disk quota for the users in your /home partition or directory. Each user is given a certain amount of disk
space he can use. Going close to filling up the quota will generally send a warning.
You can also edit other mounts such as the root directory "/" and also set a number of presented mount options:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 9/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
All service related functions such as start, stop, restart, start on boot, disable on boot, start now and on boot, and disable now and on boot
are available at the bottom of the screen. This makes system bootup process modification a breeze, even for the less experienced:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 10/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
The "Reboot System" and "Shutdown System" function buttons are also located at the bottom, allowing the immediately reboot or
shutdown the system.
The following screenshot shows the "System Logs" listed in the index under "System" menu option:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 11/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
All the logs are available for viewing and to editing. The screenshot below shows an example of editing the maillog. Through the interface,
you can enable, disable logs and make a number of other changes on the fly:
Another entry under "System" is the important function of "Log File Rotation". This allows you to edit which log file you would like to
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 12/27
rotate and how (daily, weekly or monthly). You can define what command will be executed after the log rotation is done. You can also
delete the selected log rotations:
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
Log rotation is very important, especially on a busy system as it will ensure the log files are kept to a reasonable and manageable size.
System time and hardware time can be separately set and saved. These can be made to match if required.
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 13/27
On the next tab you will be able to change the Timezone:
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
The next tab is the 'Time Server Sync', used for synchronizing to a time-server. This will ensure your system is always in sync with the
selected time-server:
Here, you will be able to select a specific timeserver with a hostname or address and set the schedule when the periodic synchronizing will
be done.
Here you can set the Hostname of the machine, the IP Address of the DNS Servers and their search domains and save them.
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 15/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
All parameters related to DHCP server can be set here:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 16/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
You can see and edit the Denied FTP Users if you select the "Denied FTP Users":
Configuration file at /etc/proftpd.conf can be directly edited if you select the "Edit Config Files" in the main menu:
In the “Backup Now” window, you can set the modules, the backup destination, and what you want included in the backup. The backup
can be a local file on the system, a file on an FTP server, or a file on an SSH server. For both the servers, you will have to provide the
username and password. Anything else that you would like to include during the backup such as webmin module configuration files, server
configuration files, or other listed files can also be mentioned here:
If you want to schedule your Backups go to the next tab “Scheduled Backups” and select the “Add a new scheduled backup”, since, as
shown, no scheduled backup has been defined yet:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 18/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
And set the exact backup schedule options. The information is nearly same as that for the Backup Now. However, now you have the
choice for setting the options for the schedule, such as Months, Weekdays, Days, Hours, Minutes and Seconds.
The options for restore now follow the same pattern as for the backup. You have the options for restoring from a local file, an FTP server,
an SSH server, and an uploaded file. Apart from providing the username and passwords for the servers, you have the option of only
viewing what is going to be restored, without applying the changes.
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 20/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
For creating a new cron job and scheduling it, select the tab “Create a new scheduled cron job”. You have the options of setting the
Months, Weekdays, Days, Hours, Minutes. You have the option of running the job on any date, or running it only between two fixed dates:
For controlling access to Cron jobs, select the next tab “Control User Access to Cron Jobs” in the main menu:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 21/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
Access Control is provided by selecting the option "Access Control" from the main menu :
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 22/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
Miscellaneous options are available when the "Miscellaneous Options" is selected from the main menu:
The SSH config files can be accessed directly and edited by selecting “Edit Config Files” from the main menu.
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 23/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
The Access Control allows ACL, Proxy restrictions, ICP restrictions, External ACL programs, and Reply proxy restrictions, when you select
“Access Control”:
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 24/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 25/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
You can also configure the existing virtual hosts or create a virtual host, if you select the other tabs:
Users and Groups who are allowed to run Apache are mentioned here (select from the main menu):
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html 26/27
7/23/2017 Installing & Configuring Linux Webmin - Linux Web-Based Administration
Apache configuration files can be directly edited from the main menu.
All the configuration files, httpd.conf, sarg.conf, squid.conf, and welcome.conf can be directly edited from this interface:
Any other service or application, which you are not able to locate directly from the index on the left, can be searched by entering in the
search box on the left. If the item searched is not installed, Webmin will offer to download the RPM and install it. A corresponding entry will
appear in the index on the left and you can proceed to configure the service or application. After installing an application or service,
http://www.firewall.cx/linux-knowledgebase-tutorials/linux-administration/880-linux-webmin-config.html
modules can be refreshed as well. From the Webmin interface, you can also view the module's logs. 27/27