This question already has an answer here:

I've been using Ubuntu 15.04 for a while with my password, so far so good (I'm the only user and root). But I wanted to change my password and tried to do that throuth terminal withsudo passwd. It asks me for my new password and than tell me the pw was successfully updated. The point is, my password doesn't change, it is the same old one. The new one doesn't work, it looks as if I've done nothing. What is that and how do I fix?


marked as duplicate by A.B., Pilot6, Eric Carvalho, user364819, mikewhatever Oct 28 '15 at 0:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Kindly check this link askubuntu.com/questions/294946/… – Jerome Ayroso Oct 27 '15 at 3:20
  • You need to specify a user. sudo passwd Lucas – Neil Oct 27 '15 at 3:21
  • the password that you use with sudo is the one for your account. to change that use passwd without sudo. – user448115 Oct 27 '15 at 5:30
  • You are not "the only user and root" - root is always a separate user. You may be the only user and a member of the group sudo. – steeldriver Oct 27 '15 at 6:27

Run these commands:

sudo passwd root

[enter your user's password]
[enter the password you want]
[enter the same password]

And you're done.

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