Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

After a disk crash someone reinstalled Ubuntu for me. My su password works. They said they used no sudo password, but that doesn't work, and nothing else works. Can I reset the sudo password from the terminal? And if, how would I do that? I'm pretty new to linux, so appreciate the help.

share|improve this question

In general sudo is using your user using to login e.g. into your desktop password. Giving sudo is installed, you might need to add your user to group sudo. This can be done as root via e.g.

usermod -a -G sudo your_user_name 

Having this done, sudo should work for your user again. However, if you have a full root account -- I assume this from your su is working -- you don't need sudo as you could use e.g. su with -c command. But this is more kind of taste and what exactly you are doing.

P.S. Maybe you can have a look at

share|improve this answer is not the right place to ask this. This is not strictly Ubuntu related. – Bernhard Apr 18 '14 at 16:11
hmmmm... as he might is a ubuntu-user, having a look there is a good idea nevertheless. Also configuration of Ubuntu e.g. on sudo is also differing form other distributions .... – frlan Apr 18 '14 at 16:13
@frlan Debian has the same configuration. – Zoredache Apr 18 '14 at 16:49
Well.. even on Debian there have been differences at least in past. Not sure about the current state and I really it's OT here at this point. – frlan Apr 18 '14 at 16:51
It is not off topic here. Just because it may fit on other sites as well or better doesn't mean that it is off topic here. The topic of this site is general personal computing issues, this certainly fits. – Zoredache Apr 18 '14 at 16:57

Or at :

Just remember, when sudo asks for a password, it needs YOUR USER password, and not the Root account password.

share|improve this answer

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.