Webmin
Webmin is a web-based interface for system administration for 'nix systems which allows a user to setup user accounts, Apache, DNS, file sharing and more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and allows you manage a system from the console or remotely.
Documentation
HOWTO: SSL Certificate
https://www.digicert.com/ssl-certificate-installation-webmin.htm
HOWTO: DISABLE:
SSL
sudo nano /etc/webmin/miniserv.conf ssl=0 sudo service webmin restart
HOWTO: FIX:
ERROR: Failed to open socket family 10
Error...
Failed to open socket family 10 : Address family not supported by protocol at /usr/share/webmin/miniserv.pl line 542
Fix...
This is because you are trying to start Webmin on a system without IPv6 support.
sudo nano /etc/webmin/miniserv.conf ipv6=0
/etc/webmin/start
ERROR: SSL_ERROR_RX_RECORD_TOO_LONG
You will now get an SSL error on most web browsers, because the SSL self-signed certificate used by the standard installation is out of date. More information on the new SSL rules can be found here.
To fix it, regenerate the self-signed certificate, or install your own proper domain SSL certificate.
Thanks - https://www.digicert.com/ssl-certificate-installation-webmin.htm
Incorrect Operating System Version Detected
Webmin behaves differently depending on the operating system or Linux distribution that you have installed, and the particular version that you are running.
The correct OS is always automatically detected at installation time or provided by the installer, but it is quite possible that your system may be upgraded during the lifetime of the system.
If this happens, Webmin will not automatically detect the upgrade - you must tell it by following these steps :
- Click on the Operating System and Environment icon on Webmin > Webmin Configuration page.
- Select your Unix vendor and version from the New operating system list.
- Change the exact version number to match the detected version.
- Hit the Save button to have Webmin start using it.
Blocked Because Of Too Many Authentication Failures
Just restart webmin via SSH...
/etc/init.d/webmin restart
HOWTO: GENERAL:
Change Root User Password
sudo /usr/share/webmin/changepass.pl /etc/webmin root "MyPassw0rd" sudo service webmin restart
Change Webmin User Password
/usr/local/webmin/changepass.pl /etc/webmin admin PasSw0rd
or
/usr/libexec/webmin/changepass.pl /etc/webmin admin PasSw0rd
or
/usr/share/webmin/changepass.pl /etc/webmin admin PasSw0rd
Add New Webmin User Via Command-Line Shell
Edit the webmin users file and add a line for your new user;
nano /etc/webmin/miniserv.users newusername::0
Add a password for that user;
/usr/libexec/webmin/changepass.pl /etc/webmin/ newusername your_password
Edit the access control list (for example, just to allow shutdown or reboot module);
nano /etc/webmin/webmin.acl newuser: init
Restart Webmin;
/etc/init.d/webmin restart
Start Or Stop Webmin
/etc/webmin/start /etc/webmin/stop
Adding Webmin To New Gentoo Baselayout v2 Startup Scripts
su - root echo "/etc/webmin/start &>/dev/null" >> /etc/local.d/webmin.start echo "/etc/webmin/stop &>/dev/null" >> /etc/local.d/webmin.stop chmod +x /etc/local.d/webmin.st*
HOWTO: INSTALL:
On Rasbian Linux (Rasberry Pi)
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 the GPG key with which the repository is signed, with the commands:
sudo -i cd /root wget -O webmin.asc http://www.webmin.com/jcameron-key.asc apt-key add webmin.asc
You will now be able to install with the commands:
sudo aptitude update sudo aptitude install webmin
All dependencies should be resolved automatically.
Thanks to Webmin.
On Ubuntu Linux
If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system and add the lines:
# webmin deb http://download.webmin.com/download/repository sarge contrib
Now install the GPG key:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D97A3AE911F63C51
You will now be able to install with the commands:
sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get install webmin
All dependencies should be resolved automatically.
Thanks to Webmin.
Tar Version
Full instructions - http://www.webmin.com/tgz.html
FAQs - http://www.webmin.com/faq.html
Download from the web site and extract:-
wget http://downloads.sourceforge.net/project/webadmin/webmin/1.840/webmin-1.840.tar.gz tar -xzvf webmin-1.840.tar.gz chown -R root:root webmin-1.840/
Install using the setup script:-
cd webmin-1.840/ ./setup.sh /usr/local/webmin (this is the destination directory)
HOWTO: MAILSCANNER MODULE:
Download Link
Configuration
Full path to MailScanner program: /opt/MailScanner/bin/MailScanner Full path and filename of MailScanner config file: /opt/MailScanner/etc/MailScanner.conf Full path to the MailScanner bin directory: /opt/MailScanner/bin/ Full path and filename for the MailScanner pid file: /opt/MailScanner/var/MailScanner.pid Command to start MailScanner: /opt/MailScanner/bin/check_mailscanner Command to stop MailScanner: killall MailScanner