J Cornelius

Change Your Lost Webmin Password

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.

Published: Short URL: http://jc.cm/3/
Bookmark using Delicious Share on Tumblr Share on Posterous