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 have forgot my main password for main log in and for everything that I need to authenticate things for.

How can I recover or reset my password?

share|improve this question
Please have a look at this post… Let us know if that helped you recover / change your password. – Bruno Pereira Feb 29 '12 at 15:37

You cannot recover the password, but you can change it to log in again.

When you boot, hold down the Shift key until you get the Grub menu.

Choose the item (usually the second one) that reads, "Ubuntu, with Linux ... (recovery mode)".

When it boots, select the option "root -- Drop to root shell prompt".

You will see a flashing cursor. Type the following and press Enter:

passwd user

but replace "user" with your username. Type the new password when prompted (twice).

Then press Ctrl-Alt-Delete to reboot normally.

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.