This happens to everyone at one time or another. You go on vacation and when you come back, you forget all of the passwords on your computer. Well, I only forgot one password: the login for Webmin.
I failed logging in several times and then Webmin blocked my IP. Getting localhost blocked isn’t a good thing to see. So I searched the Internet for a way to reset the password and I found this procedure:
- Login to your computer as root.
- If you are running a RedHat distribution (i.e. Fedora, CentOS, Gentoo), enter the following command:/usr/libexec/webmin/changepass.pl /etc/webmin username password
If you are running a Debian distribution, enter the following command:
/usr/share/webmin/changepass.pl /etc/webmin username password
- Login to Webmin with your reset password.