Ubuntu Linux lost password, change root password from boot

  1. Reboot your computer
  2. Press SHIFT or ESC at the grub prompt (as earlier)
  3. Select your image, and highlight the line that begins kernel and press ‘e’ to edit
  4. 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
  5. Type in passwd username

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s