I'm not sure what I'm doing wrong...everything I've found indicates that I'm doing this correctly.
I have a file, password.txt, with the following contents:
I run 'chpasswd < password.txt' and I get no errors. When I run 'll /etc/shadow' I can see the timestamp has been changed on my shadow file.
My previous password no longer works, but when I try to log in as root using the new password, it fails.
Code:
$ su -
Password:
su: incorrect password
What am I missing?