We want to reset an admin’s password on an Ubuntu system.

Step1:

When Booting up the machine, we hold down the left Shift or Esc key.

Step2:

Select Recovery Mode. Use the arrow keys to scroll to the first boot option from the top that contains (recovery mode). Hit Enter.

Step3:

Select root. Use the arrow keys to scroll to root -- Drop to root shell prompt. Hit Enter.

The root shell prompt will look like this.

Step4:

List users. If needed, enter ls /home to list all user accounts.

Reset the password. Run, where username is the user account you want to reset. There will be a prompt for a new password. No letters will appear when you type. This is how it should be. Hit Enter each time you’re finished typing the password.

Exit to the menu. Type exit and hit Enter.

Boot normally. Select Resume Normal Boot and log in with your new password.

Leave a Reply