Thursday, June 7, 2012

passwd: Authentication token manipulation error + CentOS


if you see this error then just run the "pwconv" from root prompt as shown in the example and  you will be all set.

[root@aqua ~]# passwd myuser
Changing password for user myuser.
passwd: Authentication token manipulation error
[root@aqua ~]# pwconv
[root@aqua ~]# passwd myuser
Changing password for user myuser.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@aqua ~]#



13 comments:

  1. I run pwconv but error passwd: Authentication token manipulation error

    ReplyDelete
    Replies
    1. are you running this as root ?

      Delete
    2. http://www.linuxquestions.org/questions/linux-server-73/problem-with-etc-passwd-871124/

      Delete
  2. pwconv: cannot lock /etc/passwd; try again later.

    :(

    ReplyDelete
  3. pwconv: cannot lock /etc/passwd; try again later.

    ReplyDelete
  4. If you still can not lock /etc/passwd then try this:

    1. mount -o remount,rw /
    2. chmod 640 /etc/shadow
    3. pwconv

    After this, you should be able to reset passwd.

    -Bhavin

    ReplyDelete