How to reset a lost Webmin password

It can happen to all of us, we may have too many passwords to remember, that we may forget the odd one or two. Or I've not used that system/application for a while and I can't remember the password. Don't panic, all is not lost.

When it comes to webmin if you forget your password and you can still login to the server then we can use the webmin utility to reset your admin password.

Syntax: <webmin-config> <username> <password>

Simply replace webmin-config with the path to the webmin configuration files, username with your webmin username, and password with your new password.

For example:

mchurchi@host$ /opt/webmin/ /etc/webmin mchurchi TrustNo1.