Changed Password Won't seem to work for account

Posted by erik on Server Fault See other posts from Server Fault or by erik
Published on 2012-06-24T23:32:42Z Indexed on 2012/06/25 3:17 UTC
Read the original article Hit count: 585

Filed under:
|

Bit of an odd problem. I've got a server I can SSH into as one of two logins: root or erik. Once I've logged in as erik I've tried to switch to the root user:

# sudo su - root
Password:

And entered the password. After several failures I thought I might have forgotten. So I SSH'd in as root, and changed the root password:

# passwd

Now back to the other shell (erik) and attempt to run sudo su - root and again, it won't accept the just changed password. Any ideas?

© Server Fault or respective owner

Related posts about sudo

Related posts about su