Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

The User Password is not changing for some reason. In the terminal it says password updated successfully,

$ sudo passwd
[sudo] password for zaigham: 
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

But when I try to log in using the new password it doesn't work. I have changed my password 2, 3 times now but still it's the same. Is that some kind of bug?

share|improve this question
For those with the luxury of reinstallation, this problem occurred for me when I set the autologin during my install, I guess the installation process sets some files that aren't compatible with the Account settings GUI. I re-installed and didn't choose autologin. Then I was able to toggle the automatic login in the GUI and it worked. The only caveat is that the GUI will show it as OFF when you enter, it appears to incorrectly detect the current setting. – user139997 Mar 13 '13 at 17:52
up vote 9 down vote accepted

To change your own passwd use just passwd not sudo passwd.

share|improve this answer
oh my bad. Thanks! – Laphanga Nov 3 '12 at 16:19
@Laphanga Also, since sudo passwd sets a password for root, which should generally be avoided in Ubuntu, I recommend reversing that action by running sudo passwd -dl root. – Eliah Kagan Nov 3 '12 at 16:56

Your Answer


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.