homehowtokbslinksaboutcontactprojectsmusic

Index > Knowledge Base > Webmin
To install webmin from command line add the webmin sources to system repository
echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list
echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" >> /etc/apt/sources.list
Import the GPL key and install it
wget http://www.webmin.com/jcameron-key.asc && sudo apt-key add jcameron-key.asc
Update the packages
sudo apt-get update && apt-get install webmin -y
Reset webmin password for root
/usr/share/webmin/changepass.pl /etc/webmin root yourpassword
Add/Remove Webmin user via command line
nano /etc/webmin/miniserv.users
To add system user for webmin do the following, it will use the system password
rkhan:x:0::
And restart the webmin server
service webmin restart
Now this user can login but have no permissions. To add them
nano /etc/webmin/webmin.acl
And paste the following all on one line, all options are available, reduce to restrict.
backup-config change-user webmincron usermin webminlog webmin 
servers acl bacula-backup init passwd quota mount fsdump 
ldap-client ldap-useradmin logrotate mailcap mon pam proc 
at cron sentry package-updates software man syslog syslog-ng 
system-status useradmin apache bind8 pserver dhcpd dovecot 
exim fetchmail frox jabber ldap-server majordomo mysql openslp 
postfix postgresql proftpd procmail qmailadmin mailboxes sshd 
samba sendmail spam squid sarg wuftpd webalizer adsl-client 
bandwidth ipsec krb5 firewall exports nis net xinetd inetd pap 
ppp-client pptp-client pptp-server stunnel shorewall tcpwrappers 
idmapd filter burner grub lilo raid lvm fdisk lpadmin smart-status 
time vgetty cluster-passwd cluster-copy cluster-cron cluster-shell 
cluster-software cluster-usermin cluster-useradmin cluster-webmin 
cfengine heartbeat shell custom file tunnel phpini cpan 
htaccess-htpasswd telnet status ajaxterm updown
Restart the webmin server
service webmin restart
Now login as rkhan and you will see all option