Reset your lost Ubuntu Password

If you ever get locked out of your Ubuntu installation as I found myself to be tonight, you can reset your password quite easily using the following steps.

  1. Power up your computer.
  2. Press ESC at the grub menu.
  3. Press e for edit.
  4. Highlight the line that begins \”Ubuntu, KERNEL ………\” and press e.
  5. Go to the end of this line, add rw init=/bin/bash and press enter.
  6. Press b to boot your system.
  7. Your system will boot up to a passwordless root shell.
  8. Type in passwd username where username is the username you lost the password for.
  9. Set your password.
  10. Type in reboot.

That is it! you can now log in using your new password. You can even reset your root password here but cannot login with it at the login screen.

1 Comment

  1. Tolga

    Great job and very usefull. Thanks..

    But there is a serious bug. In north America qibla is shown as north or north-east. It is wrong. Search for manhattan and then zoom out till you see America and Asia together. You will see.

Leave a Reply

Your email address will not be published. Required fields are marked *