Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.