How to reset forgotten user/boot password in Ubuntu
This post was written by admin on February 21, 2010
Posted Under: General
Posted Under: General
If you forgot your ubuntu user password,or you have enabled root user and forgot the password,you can try following to reset the forgotten password.
First,start your machine and when it boots into grub menu,select “Ubuntu GNU Linux …. (recovery mode)” (just use up/down arrow key to highlight it,not press enter).
Press E to get into edit screen,thereĀ find ro single and change it into rw single init=/bin/bash,then press Ctrl+x or b to boot into a command line.
type following command:
mount -a
passwd your-user-name
it will prompts to input new password.If you want to reset the root password,change the second command to passwd root.
Now,restart and login with the new password.
Related posts:
- Reset the forgotten password in Ubuntu
- Ask for a password to access recovery mode root console
- How to Login Without Password in Ubuntu 11.10
- Fix Mysql5.0 ERROR 1045(forget database password) in Ubuntu Linux
- Find a Forgotten Password saved in Firefox

Reader Comments
the above mentioned steps don’t work for me.
after selecting the recovery option in the boot loader and pressing “e” to edit. There is no “ro single ” line in the entire list !
and if I add it to the bottom of the list I get the error unknown command “rw”
[Reply]