Tag: webmin

  • webmin create new admin user from command line

    webmin create new admin user from command line

    webmin

    PAM authentication failed n a webmin server with no errors on CentOS 6 server. To fix this, i created a nom PAM user “admin”.

    To add non PAM user, edit

    /etc/webmin/miniserv.users
    

    Add

    admin:mypassword
    

    Edit file

    vi /etc/webmin/webmin.acl
    

    Add

    admin: acl adsl-client ajaxterm apache at backup-config bacula-backup bandwidth bind8 burner change-user cluster-copy cluster-cron cluster-passwd cluster-shell cluster-software cluster-useradmin cluster-usermin cluster-webmin cpan cron custom dfsadmin dhcpd dovecot exim exports fail2ban fdisk fetchmail filemin file filter firewall6 firewalld firewall fsdump grub heartbeat htaccess-htpasswd idmapd inetd init inittab ipfilter ipfw ipsec iscsi-client iscsi-server iscsi-target iscsi-tgtd jabber krb5 ldap-client ldap-server ldap-useradmin logrotate lpadmin lvm mailboxes mailcap man mon mount mysql net nis openslp package-updates pam pap passwd phpini postfix postgresql ppp-client pptp-client pptp-server procmail proc proftpd qmailadmin quota raid samba sarg sendmail servers shell shorewall6 shorewall smart-status smf software spam squid sshd status stunnel syslog syslog-ng system-status tcpwrappers telnet time tunnel updown useradmin usermin vgetty webalizer webmincron webminlog webmin wuftpd xinetd virtual-server virtualmin-awstats jailkit virtualmin-htpasswd virtualmin-sqlite virtualmin-dav ruby-gems virtualmin-git php-pear virtualmin-init virtualmin-slavedns virtualmin-registrar
    

    Set a password for user admin.

    /usr/libexec/webmin/changepass.pl /etc/webmin admin  PASSWORD_HERE
    

    Now you will be able to login to webmin at

    https://your-server-ip:10000
    User = admin
    PW = password you used in above step
    
  • LetsEncrypt  SSL for webmin server

    LetsEncrypt SSL for webmin server

    Webmin run on port 10000 over HTTPS. By default webmin use self signed SSL certificate. To use SSL for webmin, you need to first get SSL cerificate for the domain you need to use. Refer https://serverok.in/letsencrypt for getting SSL certificate.

    Once you have SSL certficate, do following.

    cd /etc/webmin
    mv miniserv.pem miniserv.pem.old
    cat /etc/letsencrypt/live/YOURDOMAIN/cert.pem /etc/letsencrypt/live/YOURDOMAIN/privkey.pem /etc/letsencrypt/live/YOURDOMAIN/chain.pem > /etc/webmin/miniserv.pem
    

    Now restart webmin

    systemctl restart webmin
    

    Now you will be able to access webmin using this SSL cert at

    https://YOURDOMIN:10000
    

    To auto renew SSL, add following entry to cronjob that renew your LetsEncrypt SSL certificate.

    cat /etc/letsencrypt/live/YOURDOMAIN/cert.pem /etc/letsencrypt/live/YOURDOMAIN/privkey.pem /etc/letsencrypt/live/YOURDOMAIN/chain.pem > /etc/webmin/miniserv.pem
    systemctl restart webmin
    
  • webmin

    Webmin is an open source control panel to manage Linux and FreeBSD servers.

    http://www.webmin.com

    Download Latest source distribution from

    http://www.webmin.com/download.html

    To install webmin in Ubuntu/debian, edit

    vi /etc/apt/sources.list
    

    Add

    deb https://download.webmin.com/download/repository sarge contrib
    

    On Debian 11, Ubuntu 22.04 or higher, add the following

    deb [signed-by=/usr/share/keyrings/jcameron-key.gpg] https://download.webmin.com/download/repository sarge contrib
    

    Add GPG key

    cd /root
    wget https://download.webmin.com/jcameron-key.asc
    apt-key add jcameron-key.asc 
    

    On Debian 11, Ubuntu 22.04 or higher.

    cd /root
    wget https://download.webmin.com/jcameron-key.asc
    cat jcameron-key.asc | gpg --dearmor >/usr/share/keyrings/jcameron-key.gpg
    

    Install webmin with apt

    apt-get update
    apt-get install apt-transport-https
    apt-get install webmin
    

    webmin access log

    /var/webmin/webmin.log
    

    LetsEncrypt SSL for webmin server
    Webmin create new admin user from command line
    Change MySQL root password in Virtualmin

    See Hosting Control Panel