How to reset a user password in Ubuntu

If you do not remember your user password, then you need to reset it. Follow the steps below in order to do so .

Step1 : Go to the restart option, just click shut down by pressing the shift key and click on restart.Hold it until you can see the recovery menu.

Step 2 : Move down and click on recovery mode as shown above (second entry).

Step 3 : Scroll all the way down to the last entry named root and press enter.

You should now see an output (a command line prompt) similar to the one below:

root@ubuntu:~#

You should, at this stage, have a read-only filesystem. You will need to remount it by granting write permissions.

Step 4 : issue the command :

mount -o remount,rw /

Step 5 : Now you will be able to enter your new password. Retype it once again and hit enter :

root@ubuntu:~# passwd yournewpassword

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

root@ubuntu:~#

Reboot now your machine. You will be able to log in using your new password .

ziad nahdy

Ziad Nahdy, fan of open source, worked at SAP for 17 years. He is a technical writer, blogger and Linux enthusiast. He loves to read and help others with their problems. He is addicted to open source software but he also loves other technology related stuff.

Leave a Reply

Close Menu