SYSTEM INFORMATION | |
---|---|
OS type and version | CentOS Linux 7.9.2009 |
Webmin version | 2.105 |
Virtualmin version | 7.10.0 |
Related packages | SUGGESTED |
I’m at the end of my rope here. One day recently – several weeks ago, that’s how long I’ve been working on this off and on – I could no longer log into Webmin/Virtualmin (GPL) as the root
user. I use a password manager, and you’ll just have to believe me that I know what I’m doing and have never had this problem on any type of a system before. There was nothing that I did immediately beforehand to cause this to happen; one day the root password simply no longer worked when I went to log into Virtualmin.
The same password I have been using to log into Virtualmin works over SSH, but not when logging into the web interface as root. It’s bizarre. I’ve read a lot of search results, and I’m 99% certain that my Webmin system uses the same passwords as the Linux system. I haven’t changed that on any of my Webmin-run servers.
But when I change the password of root
on the command line with passwd
, I still cannot log into Virtualmin with the new password. In case some special character was causing a problem, I even used a password with only letters and numbers. And all has been copied and pasted; I’m not leaving anything to chance. I still cannot log in.
Of all the search results, this one seemed the most relevant: Password change and now I’m locked out. I tried to change the root password with this command, while in the /usr/libexec/webmin
directory:
./changepass.pl /etc/webmin root PASSWORD
The output was:
Password for Webmin user root updated successfully
Great! We’re getting somewhere. But when I try to log into Virtualmin:
Warning!
Login failed. Please try again.
I do note, though, that the entry for the root user in /etc/webmin/miniserv.users
has changed; before it was:
root:x::::::::0:0:::
… and now it is:
root:$6$13080545$xxDyYy0gvtLE2J5F35j7bC/SRiAn6h4.ESCafqSyrnQE87ysdv8789fTxEaqJGiV06qQRfbCPcMp5XLw46fSv2Qo60::::::::0:0
(I’ve messed up that hash, by the way.)
From [solved] Login fails with root : password but ssh access works - #7 by Ilia I also tried this:
webmin passwd --user root
… with all the same results as the above attempt.
I’m 99.9999% certain that this server has not been rooted. If it was I would have known long ago and, besides, I wouldn’t be able to log in over SSH as root. The two websites it hosts (that’s all it hosts) are untouched, and no spam has been or is being sent from the server. Trust me, I would know.
My VPS provider (Linode) has an option to reset the root password, but I have the root password and can log in over SSH, and I can change the root password myself on the command line (as noted above with passwd
), so I’m certain that going that route won’t fix this problem.
I have tried rebooting the server, and that didn’t help either.
Has anyone else had and solved this problem before?
Craig