web analytics
Home / How-to Guides / How 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.

About Kroshan

Roshan Karkera a.k.a. k.roshan. Blogger by passion and software engineer by profession. He believes in sharing knowledge, which made him to start his own blog. He is very much keen & passionate about new technology & Science. If you'd like to connect with him, follow at Google plus or Twitter.
  • Jamy

    really wanted this..
    your article are always easy to follow, many thanks:)