J. Cornelius

Change Your Lost Webmin Password

September 12, 2003 - 10:39:43 PM

At some point you will find yourself locked out of your Webmin console and in need to change the password for your user. Here's how:First, SSH/Telnet to the box in question.

You will need to know where Webmin is installed and the path to the script we will be using.

> whereis webmin

should print something like:

webmin: /etc/webmin

Then enter:

> locate changepass.pl

... and you should see something like this:

/usr/local/webmin-1.090/changepass.pl

Now just use the correct paths and add this at the end:

[username] [new password]

The entire thing together looks like this:

/usr/local/webmin-1.090/changepass.pl /etc/webmin [username] [new password]

Of course the user you specify will need to be a valid user in the Webmin config. This will not work for creating new Webmin users.

Tags

administration, webmin

About

J Cornelius is a software developer, Web developer, and Formula 1 fan in Atlanta GA. He has a strange affinity for odd numbers, european sports cars, thoughtful analogies, and is hopelessly addicted to chips & salsa. Read more