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

I wanted to change my own password, but instead of using sudo passwd myuser, I used sudo passwd by mistake, and so I set the password for root. Does that mean that my root account is enabled now? I know that it's supposed to be disabled in Ubuntu. What steps should I take to disable it again? It's currently set to the same password as my own user account, and it's kind of redundant, because my user is in the sudoers list anyway.

share|improve this question
up vote 3 down vote accepted

Yes, the root account is now enabled. You can disable it with sudo passwd -dl root. See

To change your user's password, just run passwd instead of sudo passwd username.

share|improve this answer
also if you just need to change your password just type passwd – coder Jul 7 '12 at 11:40

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.