How to Reset Forgotten Root Password in Ubuntu 19.04 / 18.10 / 18.04 / 17.10 / 17.04 / 16.10 / 16.04
In this article, we’ll review how to reset the forgotten Root password on the Ubuntu operating system.
How to Change Forgotten Root Password in Ubuntu 19.04 / 18.10 / 18.04 / 17.10 / 17.04 / 16.10 / 16.04
Forgotten Linux / Ubuntu operating system user or Root passwords can be easily change without needing any program.
If you forgot the user or Root passwords of the Linux operating system you are using, you do not have to reinstall the operating system. You can complete this process in just a few steps.
You can reset your password in approximately one minute by restarting your computer after using the Root Shell method. We will use Ubuntu Recovery Mode to fix the root password.
On other Linux distributions, the password reset process is the same. Follow these steps in order to reset your Linux root password.
Step 1
When you turn on your computer, you do not remember your password and encounter the screen in the following image. Now restart your computer.
Start the GRUB menu by holding down the Shift key on your computer’s login screen.
Step 2
The GRUB menu is as follows. Press the Enter key on the “Advanced options for Ubuntu” option in the GRUB menu.
Step 3
Then press the Enter key on “Ubuntu, with Linux 4.10.0-21-generic (recovery mode)“. In this step, we will start the Recovery Mode in the Linux distribution.
Step 4
Opening Ubuntu recovery mode …
Step 5
Select and continue the “Drop to root shell prompt” option on the Recovery Mode.
Step 6
In this step, press Enter to switch to the command prompt.
Step 7
At the root command prompt, type mount -o rw, remount / and press Enter.
root@sysnettechubuntu:~# mount -o rw, remount /
Step 8
In this step, you must type the user name whose password you want to reset. Specify a new password using passwd (username).
root@sysnettechubuntu:~# passwd (username)
Finally, restart your pc using the sudo reboot command. After you restart your computer, you can now log in with your new password.
root@sysnettechubuntu:~# sudo reboot
Step 9
Wait while your Linux system is restarting …
Step 10
If your GRUB menu opens after your system is turned on, you can continue by selecting Ubuntu.
How to Readjust User Account Password in Ubuntu ⇒ Video
You can watch the video below in order to readjust the Ubuntu Root password you forgot, and you can also subscribe to our YouTube channel to support us!
Final Word
If you have forgotten your Ubuntu password, you can easily reset your password by following the steps in this article. Thanks for following us!
Related Articles
♦ How to Install Ubuntu in VMware
♦ How to Install VMware Tools in Ubuntu
♦ How to Clone a VM in VMware
♦ How to Increase HDD Space in VMware
♦ How to Snapshot a VM in VMware
Thanks a lot, it helps!
You’re welcome! Thank you for your comment!
please, guide me step# 06 which is not open Command prompt I have tried many time. please guide thanks.