Webmin Installation on Debian and Ubuntu


We, the system administrator, always try to simplify our work. By default, a Debian/Ubuntu server edition do not provide us GUI version to manage the system e.g. Postfix based mail server, proxy server etc. We can achieve it using webmin. This guide will drive us to the installation of webmin in a Postfix based mail server.

Deployment Infrastructure:
OS: Ubuntu/Debian

Installation:

If you are using the DEB version of webmin run the command:

wget https://prdownloads.sourceforge.net/webadmin/webmin_1.941_all.deb

(install the latest package from: http://www.webmin.com/download.html)
Run the command:

dpkg --install webmin_1.941_all.deb

The install shall be completed automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin.

Login URL:
http://serveripaddress:10000

If Debian complains about missing dependencies, you can install them with the command:

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

If you are installing on Ubuntu and the apt-get command reports that some of the packages cannot be found, edit /etc/apt/sources.list and make sure the lines ending with universe are not commented out.

Some Debian-based distributions (Ubuntu in particular) don't allow logins by the root user by default. However, the user created at system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo capability to login with full root privileges.

If you want to connect from a remote server and your system has a firewall installed, you need to open the port 10000 on your firewall.
Add below line in iptables:

iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT

Using the Webmin APT repository:

If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system and add the lines:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib


You should also fetch and install my GPG key with which the repository is signed, with the commands:

cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc


You will now be able to install with the commands:

apt-get update
apt-get install webmin


All dependencies should be resolved automatically.

Controlling Webmin Access:

Now, you can access the webmin by using the url: https://serveripaddress:10000

You can customize the webmin access for a particular user.
First of all login as a root user.
Now, you can create a new user for webmin access as follows.



Set a username and password for the new user as follows:



You can now control new created user access into the server. e.g. in this case the newly created user can only create, delete users and groups. Also can change the passwords of users and groups.



Click create at the end of this page.

You can now login the webmin with the newly created username and password. Also can create users, groups and change passwords. Below given a procedure for creating a new user.




You can modify the systems and servers for the access of webmin user according to your requirement.

Comments

Popular posts from this blog

Install a Comodo/Sectigo Domain Validation SSL certificate in Zimbra

Adding DKIM record (1024 bit) in Zimbra

Recipient Limit of a Message in Zimbra