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

This question already has an answer here:

11.10 has allowed me to (stupidly) remove my admin level login leaving me with only my standard log in. I am no longer able to modify any software, update etc.

How can I 'uprate' my user login back up to admin level?

share|improve this question

marked as duplicate by Eliah Kagan, Seth, Eric Carvalho, Nathan Osman, Thomas Ward Apr 9 '13 at 0:45

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.

Follow any of the procedures for resetting a forgotten password (or this, this, or this), but do not run:

passwd username

Instead, run:

usermod -a -G sudo username

Of course, username should be replaced with your actual username.

Note: if you are on Ubuntu 11.10 or an older release, the command to run is:

usermod -a -G admin username

share|improve this answer

On Ubuntu 10.10 admin group was not enough after creating the new user with adduser username. I also had to make the user memeber of the sudo group:

usermod -a -G admin,sudo username
share|improve this answer

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