How to Reset Forgotten User Password in Ubuntu 17.04 Using Terminal

- Advertisment -
- Advertisement -

If you have forgotten your Ubuntu user password and have some valuable data on the system then don’t think to format it because you can recover it. In the Ubuntu, it is super easy to recover the user password if you know the root password. And if you also forgot the root password then see our tutorial on “Resetting the root password on Ubuntu with knowing it“.

But right now, in this tutorial, we assume that you know your Ubuntu’s root password and will tell you how to reset that using Grub. The tutorial will work for almost all current active versions of Ubuntu such as Ubuntu 12.04, Ubuntu 41.4, Ubuntu 16.04, Ubuntu 16.10  and Ubuntu 17.04.

Note: While creating the Ubuntu password reset guide we were using the Ubuntu 17.04.


ALSO SEE: How to Setup New Ubuntu Root User Password Using Command Terminal


Reset Your Ubuntu Password Using Grub

If you forgot the Ubuntu password of ‘XYZ ‘user then restart your PC and follow the given steps.

Step 1: First step is to restart your Ubuntu Linux box and when bios appear press and hold the shift key from the keyboard to get the Ubuntu Grub menu. When the Grub has appeared on your system, it will look like same as the given screenshot.

Ubuntu root password reset


Step 2: Once the grub appears, select the “Advanced option for Ubuntu“. After selecting the advanced option you will see couple of other options, now select the “Ubuntu, with Linux recovery mode

how to change ubuntu password without knowing it


Step 3:  Now you would see something like below screenshot. Using arrow key select the option “Drop to root shell prompt”.

Change password on root user and user account


Step 4: Now it will ask for the root password, type your root password and hit the enter button.

How do I reset a lost administrative password


Step 5: After keying the root password and hitting the enter button you will see the something like this:


Note: h2s is our username and in your case, it reflects yours.

Change the forget user password in ubunutu



Step 5: So, you successfully got the root access but still the file system is read-only and you need to remount it with write permission. To do that use the following command:

mount -o rw,remount /


Step 6:  I assume in your case you have also successfully mount the filesystem and now its time to change your Ubuntu user password. Type the command

passwd h2s


Note: Replace the h2s with your username whose password you wan tot reset.

overview of executed commands:

root@h2s:~# passwd h2s
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Reset Your Forgotten ubuntu user password



The above tutorial needs the root password of Ubuntu and if you don’t know it and want to know how to reset the Ubuntu root password with knowing it. You can see: How To Change Ubuntu Root Administrative password, if Forgotten

H2S Media Team
H2S is a group of tech enthusiasts those are passionate about latest technology developments. They always like to solve own technical problems and share the same solution with others through this Website.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

How to install Ubuntu Cinnamon Remix 19.10 on Virtual box or PC

The Ubuntu distribution of Linux doesn’t need an introduction, and it is the favourite Linux distribution of many users,...

How to open 4 or more than 4 Windows Explorer locations on PC

When we use our computers running Windows, copying and moving files from one location to the other is something...

Top 5 Classic games that you should download on your Android mobile

Thanks to the powerful Android phones that we have in our hands in 2020, we can run a lot...

Tekken 7 Pro Tips for the Beginners to master the game

Tekken 7 game is considered as one of the most popular but very hard to master. As this is...
- Advertisement -

H1Z1 Mobile version game is about to launch

The developer has announced for H1Z1 Mobile Production: A piece of news came out form the Business Wire that...

Most misunderstood, or interchangeably used tech terms of the era

We are advancing very fast in the world of Technology and we keep seeing new peripherals and gadgets every...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you