[How To] Reset Webmin Password

  1. Login into system as root or become superuser.
    su -


    sudo su -
  2. Run Command
    • RedHat distribution (i.e. Fedora, CentOS, Gentoo, etc.):
      /usr/libexec/webmin/changepass.pl /etc/webmin admin newpassword
    • Debian distribution (i.e. Debian, Ubunto, etc.):
      /usr/share/webmin/changepass.pl /etc/webmin admin newpassword
    • FreeBSD:
      /usr/local/lib/webmin/changepass.pl /usr/local/etc/webmin admin newpassword
  3. Login to Webmin with new password.


  1. C Paterson January 5, 2013 Reply
  2. James June 12, 2019 Reply
  3. mehdiana15 November 13, 2021 Reply
  4. lc-root November 18, 2021 Reply

Leave a Reply

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

%d bloggers like this: