Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running an instance of Ubuntu Server 12.04 LTS.

I recently set it up and began adding user accounts to the server. One of the users can login to the server normally vis public key, however when he tries to change his password with passwd he gets Authentication token manipulation error. And when trying to run sudo commands, the user receives the error Authentication failure when using the temp password created.

The user has been granted access to all privileges of sudo. ALL = (ALL) ALL

I have tried both logging on through my terminal and suing into the user and running the passwd and sudo commands, and they authenticate just fine, I can not figure out what is having a problem with authentication.

share|improve this question
up vote 2 down vote accepted

check if your /etc/shadow file is not protected with some attribs.

lsattr /etc/shadow

if this is the problem remove using : chattr -[attr] / etc/shadow

this file contain the passwords of all system users encrypted and when you try to change your password. the system try to override this file, may be.

chattr -[attr] / etc/shadow

you should be root for this actions, good luck

share|improve this answer

Don't you have any 3rd-party authentication tool installed? Please, try running the pam-auth-update command, deselect everything except from the Unix authentication, then try changing the password again.

share|improve this answer

The user probably mistyped the password. If he copy-pasted it, he has maybe included a space or a newline character. He should try to type it manually, knowing that he will not see what he is typing.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .