Guys, what’s the secret to changing the password and being able to log back in?
I’ve tried changing the password in Webmin/Change password, also with passwd in shell and still can’t log in. Rebooted server, rebooted Webmin and nothing.
Are you sure the password change took? Have you tried the old password? Are you logging in as user or root? Which password did you change, user or root?
And what CP are you saying is unstable? You’re not making much sense. How did you change the root password: from terminal or did you try to change the root password in Virtualmin?
You’re not really saying anything about what you’re using or how you did it.
How do I change my Webmin password if I can’t login?
Included with the Webmin distribution is a program called changepass.pl to solve precisely this problem. Assuming you have installed Webmin in /usr/libexec/webmin, you could change the password of the admin user to foo by running:
There is no secret. It’s always worked fine for me.
It is possible to end up with two different passwords (one Webmin, one system), but that’s not the default; the default is to use system passwords. The changepass.pl command changes the Webmin password, while passwd changes the system password. If you previously used changepass.pl you may have two different passwords, so you’re perhaps you’re trying to login using the system password, which obviously wouldn’t work, since you’d have a non-system password for Webmin. I recommend just using one.
The Webmin->System->Change Passwords page modifies system passwords (not Webmin passwords). If you change there, and you’ve also set a Webmin password (using changepass.pl or the Webmin->Webmin Users module), you are not changing the password you use to login to Webmin.
Visit Webmin->Webmin->Webmin Users->root
Make sure it is set to “Unix Authentication” rather than anything else. Having two passwords is just confusing you, so don’t do that.