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 Reset Forgotten Root Password in Ubuntu 19.04/18.10/18.04/17.10/17.04/16.10/16.04

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.

Ubuntu Invalid Password

   Step 2

The GRUB menu is as follows. Press the Enter key on the “Advanced options for Ubuntu” option in the GRUB menu.

Advanced options for Ubuntu

   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.

Recovery Mode

   Step 4

Opening Ubuntu recovery mode …

Loading initial RamDisk

   Step 5

Select and continue the “Drop to root shell prompt” option on the Recovery Mode.

Drop to root shell prompt

   Step 6

In this step, press Enter to switch to the command prompt.

Shell Prompt

   Step 7

At the root command prompt, type mount -o rw, remount / and press Enter.

root@sysnettechubuntu:~# mount -o rw, remount /

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

sudo reboot

   Step 9

Wait while your Linux system is restarting …

Restarting Ubuntu

   Step 10

If your GRUB menu opens after your system is turned on, you can continue by selecting Ubuntu.

Ubuntu GRUB Menu

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!

Ubuntu Password Reset Video

   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

3 Comments
  1. Wooky 14 June 2018

    Thanks a lot, it helps!

    Reply
    • tolqabaqci 14 June 2018

      You’re welcome! Thank you for your comment!

      Reply
  2. Engr,Dileep Kumar Mehraj 12 March 2021

    please, guide me step# 06 which is not open Command prompt I have tried many time. please guide thanks.

    Reply
Add a Comment

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