[How To] reset Webmin password

To reset the password for Webmin, you can follow these steps:

  1. Open a terminal or command prompt on the server where Webmin is installed.
  2. Navigate to the Webmin installation directory. The default location is /usr/local/webmin.
    cd /usr/local/webmin
  3. To change password run command:
    • on RedHat distributions (i.e. Fedora, CentOS, Gentoo, etc.):
      /usr/libexec/webmin/changepass.pl /etc/webmin admin newPassword
    • on Debian distributions (i.e. Debian, Ubunto, etc.):
      /usr/share/webmin/changepass.pl /etc/webmin admin newPassword
    • on FreeBSD:
      /usr/local/lib/webmin/changepass.pl /usr/local/etc/webmin admin newPassword
  4. Login to Webmin with newPassword.

These steps assume that you have access to the server and the ability to run commands as the root user, otherwise login into system as root or become superuser.

To become root, run:

su -

or, for superuser:

sudo su -

Note: This is just an example, you should use a more complex and unique password for security reasons.

5 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.