How to Reset Password in Ubuntu Linux

Updated on September 25, 2017
1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 5.00 out of 5)
Loading...

There are many reasons you may need to reset password in Ubuntu Linux:

  1. You just installed Ubuntu and forgot what password you selected during the installation.
  2. You have too many passwords in your mind.
  3. You took Ubuntu from somebody else but you do not know username password.

This tutorial shows you how to reset password in Ubuntu Linux.

Steps to Reset Ubuntu Password

1. Turn your computer on or Reboot if it is already powered-on.

2. Press ESC at the GRUB prompt.

3. Press e for edit.

Ubuntu Password Reset

4. Highlight the line that begins “kernel “, press e

5. Go to the very end of the line, add rw init=/bin/bash

Related Article  SSH Connection: Wait long after entering username - ssh password prompt delay

Ubuntu Password Reset

6. Press enter, then press b to boot your system.

Ubuntu Password Reset

Your system will boot up to root shell without prompting password.

7. To reset your password, type passwd <username>

8. Use reboot command in order to reboot your system