How to Reset Forgotten Root Password in Ubuntu? – The forgotten user or Root passwords in Linux / Ubuntu operating system can be reset without any programming required.
How to Reset Forgotten Root Password in Ubuntu?

How to Reset Forgotten Root Password in Ubuntu?

If you have forgotten the user or root passwords of the Ubuntu Linux operating system you are using, you do not have to reinstall the Ubuntu operating system. With just a few steps you can complete the Root password reset steps.

You can reset your password in about a minute using the Root Shell method by restarting your computer for Ubuntu password reset. We will use the Ubuntu Recovery Mode to reset forgotten root password in Ubuntu 17.04.

Our Recommendation

You can purchase “Linux Command Book” from Amazon.

Resetting Passwords in Ubuntu 16.04 / 16.10 / 17.04 / 17.10

It is also the same the root password reset process in other Linux Ubuntu operating system versions. For Ubuntu password reset, follow the steps below.

   Step 1

If you turn on your computer and disremember your Ubuntu password, you are probably looking at the screen below. Now restart your computer to reset forgotten user password in Ubuntu.

On your computer’s boot screen, press and hold the Shift key to start the GRUB menu.

How to Reset Forgotten Root Password in Ubuntu?

   Step 2

The Ubuntu GRUB menu looks like the following. From the Ubuntu GRUB menu, press Enter on the “Advanced options for Ubuntu” option.

How to Reset Forgotten Root Password in Ubuntu?

   Step 3

Next, press Enter on the option “Ubuntu, with Linux 4.10.0-21-recovery (recovery mode)“. In this step, we will start Recovery Mode for Linux Ubuntu 17.04.

How to Reset Forgotten Root Password in Ubuntu?

   Step 4

Ubuntu recovery mode is starting…

How to Reset Forgotten Root Password in Ubuntu?

   Step 5

On Ubuntu 17.04 Recovery Mode, select Root “Drop to root shell prompt“.

How to Reset Forgotten Root Password in Ubuntu?

   Step 6

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

How to Reset Forgotten Root Password in Ubuntu?

   Step 7

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

[email protected]:~# mount -o rw, remount /

 
How to Reset Forgotten Root Password in Ubuntu?

   Step 8

In this step you need to type the username you want to reset the password. Using passwd (username) command, set a new password for Ubuntu root password.

[email protected]:~# passwd (User Name)

 

Finally, restart your computer using the sudo reboot command. After restarting your computer, you can login with your new password.

[email protected]:~# sudo reboot

 
How to Reset Forgotten Root Password in Ubuntu?

   Step 9

Linux Ubuntu 17.04 operating system is restarting…

How to Reset Forgotten Root Password in Ubuntu?

   Step 10

Once Ubuntu restarts, you can reboot your operating system by selecting Ubuntu if the GRUB menu opens.

How to Reset Forgotten Root Password in Ubuntu?

How to Reset Forgotten Root Password in Ubuntu? ⇒ Video

You can watch how to reset forgotten Root Password in Ubuntu 17.04 and you can also subscribe to our YouTube channel to support us!

  Final Word

How to Reset Forgotten Root Password in Ubuntu? – If you have lost Ubuntu Root password, you can easily reset your password by following the steps in this article.

If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!

Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!

Articles Related to How to Reset Forgotten Root Password in Ubuntu

Products Related to How to Reset Forgotten Root Password in Ubuntu
Related Products

2 thoughts on “How to Reset Forgotten Root Password in Ubuntu?

Leave a Reply

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

3 × 2 =