How to Reset Password on Ubuntu Linux
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.
![](https://pheonixsolutions.com/blog/wp-content/uploads/2022/05/image-12.png)
Step2:
Select Recovery Mode. Use the arrow keys to scroll to the first boot option from the top that contains (recovery mode)
. Hit Enter
.
![](https://pheonixsolutions.com/blog/wp-content/uploads/2022/05/image-13.png)
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.
![](https://pheonixsolutions.com/blog/wp-content/uploads/2022/05/image-15-1024x68.png)
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.
![](https://pheonixsolutions.com/blog/wp-content/uploads/2022/05/image-14-1024x178.png)
Exit to the menu. Type exit
and hit Enter
.
Boot normally. Select Resume Normal Boot
and log in with your new password.