Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
Please have a look at this post askubuntu.com/questions/24006/… Let us know if that helped you recover / change your password. –  Bruno Pereira Feb 29 '12 at 15:37

1 Answer 1

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

 
discard

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.