Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have RHEL machine in which I am able to login as root but when I tried changing password as :
Code:
[root@pe ~]# passwd root
Changing password for user root.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: Authentication token manipulation error
But I am amazed.
When I ran:
[root@pe ~]# passwd root
Changing password for user root.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@pe ~]#
All I am entering password right way and it is accepting it too.But when I am trying to login in new window it is not taking the new password but accepting the last password.
Horrible????
Blacky..
The output is :
[root@pe ~]# ls -la /etc/passwd
-rw-r--r-- 1 root root 2956 Feb 11 11:05 /etc/passwd
[root@pe ~]#
Any idea?
Last edited by ajeetraina; 05-08-2008 at 07:27 AM.
i assume that you are using shadowed password files. this error occures when the user of which you are trying to change the password is existing /etc/passwd but not in /etc/shadow.
you have to add the user manually to /etc/shadow or update the shadow file with "pwconv"
also make sure you typed your current password correctly (if your passwd is too short you will see an entry in /etc/shadow but without any password).
in short: "The key here is that older versions of passwd did not ask for confirmation of the current password. If they did, and the user entered an incorrect password, passwd told you as much. With pam - rather than telling you your current password is incorrect, it errors saying "Authentication token manipulation error"."
if this does not help. backup /etc/shadow and /etc/group and rebuild them with pwconv and grpconv. if there's no problem with either "typing" or "/etc/shadow, /etc/passwd" then see the logs after you just tried to change the password. also, give an output of /etc/pam.d/system-auth
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.