If you forget your password for your Ubuntu account, there is a way to reset it using Recovery Mode.
To start Recovery Mode, press the Shift key (for Ubuntu 9.10 and later) or the Esc key (for Ubuntu versions earlier than 9.10) while your computer is booting. The GNU GRUB menu displays. Using the arrow keys, choose the second option, or the “(recovery mode)” option. Press Enter to select the option.
The Recovery Menu displays. Use the arrow keys again to choose the “root” option and press Enter to select it.
You will not see a normal login screen. Instead, you will see a root terminal prompt that looks something like:
root@something:~#
Type the following command at the prompt to reset the password for your account and press Enter.
# passwd username
Replace “username” with your username.
Ubuntu prompts you for a new password. Enter your desired password, press Enter and then type your password again, pressing Enter again once you are done. Ubuntu asks for your password twice to make sure you did not make a mistake while typing it the first time.
NOTE: Try to choose a secure password but one you can remember. There are options for storing password that are secure. We mentioned two ideas for storing password securely in our post, Two Free Methods for Generating Strong, Secure Passwords.
To return to the normal system environment, Type the following command at the prompt and press Enter.
# init 2
The above command does not actually open the graphical Gnome environment directly. You are first asked for your login information. Enter your username at the login prompt and then enter your new password at the Password prompt.
Once you log in, you have one more step to return to the familiar graphical Gnome desktop environment. Type the following command to start X Windows environment, or the Gnome desktop.
$ startx
You are returned to the Gnome desktop and you can continue using and enjoying Ubuntu.
by Lori Kaufman





gr8 article abt recovering ubuntu password… could u recommend which brand sound card and lan card should i buy to play music and access internet as my old realtek cards are not supported by Ubuntu.. which makes me to switch back to windows…..
[...] environment CDs and tools. We have previously written about how to reset your password in Ubuntu (Reset a Forgotten Password in Ubuntu). Now, we will discuss how to create a password reset disk and use it to reset your password in [...]
[...] 7Sep We have previously written about how to reset your password in Ubuntu (Reset a Forgotten Password in Ubuntu) and about the benefits of creating a password reset disk and how to create and use one in Windows [...]