web analytics
Saturday, June 21, 2025
HomeHow-to GuidesHow to quickly Reset Forgotten Ubuntu password

How to quickly Reset Forgotten Ubuntu password

Reset Forgotten Ubuntu passwordDid you forget your Ubuntu login password? If yes, then you are not alone even I forgot one of my systems Ubuntu login password. It’s basically one the most common problem where people forget their password. This usually happens when you are not using your system for long time, or you have just recently changed your password, and now you have forgotten what you had set. In my case, I have not used my system for a long time and hence don’t remember the password for the same.

Regardless for what reason you are resetting your password, password reset in Ubuntu is very easy.

Reset Forgotten Ubuntu password

1. Reboot your computer and press ESC key as soon as you see GRUB Loading screen. If you are using multiple OS, then select Ubuntu and press Shift key.

2. Now, you should be able to see the below screen. Select “recovery mode” from the menu and press Enter.

Select “recovery mode” from the menu

3. Once you select “recovery mode”, you should see the below screen. Select “Drop to root shell prompt.” You should now see a root shell prompt below screen popping out.

Select “Drop to root shell prompt.”

4. In order to change the password, it is important that we have read/write access, so that the new password reset gets saved on the system. Type the below command to remount the file system with read/write access.

mount -rw -o remount /

5. If you forgot your username, enter the below command to check.

ls /home

6. Once we know the username, enter the password reset command along with user name to change password. Once you enter the command, it will ask for new password. On successful reset of password, it will prompt as “password updated successfully”

passwd <enter user name>

In my case, I have entered the below command

passwd kroshan

change password

7. After changing password, use below command to reboot system and try login to the user account using the new reset password.

reboot -f

You should now be able to login successfully into your account.

Roshan Karkera
Roshan Karkera
Roshan Karkera is a passionate blogger and a software engineer by profession, driven by a love for technology, science, and continuous learning. With a strong belief in sharing knowledge, he started this blog to inspire and inform readers through simple, insightful content. When he's not coding or exploring the latest in tech, you’ll find him writing about ideas that matter. Connect with him on Twitter or your favorite social platform to stay updated.
RELATED ARTICLES

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular