passwd isn't working
When I tried to set the password for mysql it didn't work so I tried to set up a user as root and the password would show up in /etc/shadow as clear text, not hashed. When I tried
passwd kirby
and try to set the password I get:
passwd: Authentication Token manipulation Error
I searched around many forums and found no answer other than to do a reinstall.
I reinstalled a fresh gentoo image and before ever upgrading it tried to add a new user and had the same problem. Anytime I try to set the password I get an Authentication Token manipulation Error.
Is there any way to fix this problem. There is no use trying to set up a server if the passwd function is not working.
8 Replies
Sounds like it has an entry in /etc/passwd but not /etc/shadow.
If so pwconv may sort it out.
passwd kirby
I get:
passwd: Authentication Token manipulation Error
This goes beyond adding users since mysql passwords are also giving me problems. Even if I can work around the user password problem what about other passwords like in mysql?
I checked that crypt.h is installed and it is so I am lost. I will add I am an expereinced gentoo user with many installs and never had a problem until now.
=
passwd: Authentication Token manipulation Error
What have you changed since install?
What are the permissions on /bin/passwd, /etc/passwd, and /etc/shadow?
strace passwd
The advice I find on the Internet for this problem usually comes down to file system corruption and the only solution is a reinstall. I have tried this with no luck. Any other ideas?
I tried this with a new gentoo image and it worked as expected:
This is localhost.(none) (Linux i686 2.4.29-linode39-1um) 13:11:50
localhost login: root
Password:
localhost root # useradd testuser
localhost root # passwd testuser
New UNIX password:
BAD PASSWORD: it's WAY too short
Retype new UNIX password:
passwd: password updated successfully
Also, Sam, are you using the 'latest' kernel series or a specific kernel?
(I should mention at this point that I use Gentoo with the latest 2.6.x kernel series and it's been fine for me, but you never know.)