This is frustrating. I am often able to login with a root password. Then I cannot login again. However, I am still logged in. Hence my password must be correct.I changed the root password with passwd. It works again. Then sometimes latter this happens again.It's as if the root password changes all the time automatically. Did someone hack my server?
Root password keep changing
root
Assuming someone is playing around with your box or some kind of practical joke, and they did not cover their track.Check login historyVia Command LinewlastVia Log Files/var/log/auth.log (debian/ubuntu)/var/log/secure (RedHat/CentOS/Fedora?)Other PossibilitiesYour box is a virtual machine and some how keep getting roll back to previous state(snapshot).Many VPS actually reset your root password. You have to use the vendor/hosting web interface to change the root password. Otherwise it will just keep changing back to the previous one.