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.

Possible Duplicate:
How do I reset a lost administrative password?

I forgot my password to access my ubuntu 12.04. How can I reset it!??

Please help!

share|improve this question

marked as duplicate by Javier Rivera, Luis Alvarado, Rinzwind, gertvdijk, fabricator4 Jan 2 '13 at 19:24

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.

askubuntu.com/questions/24006/… –  Dan Jan 2 '13 at 18:44

1 Answer 1

Reboot your computer.
Press SHIFT at the grub prompt.
Select your image.
Highlight the line that begins kernel and press e to edit

Go to the very end of the line, change the ro to rw and add init=/bin/bash, press enter, then press b to boot your system. Your system will boot up to a passwordless root shell.

Type in passwd <username>
Set your password.
Type in reboot
share|improve this answer

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