Header Ads

How to recover the lost password in Ubuntu

·         Reboot the system. Use reboot now in command prompt.

Note: if you are running Ubuntu on VMware you will get below screen. Choose the option – Ubuntu Advance options.

·         Press the Left “Shift” once your BIOS screen appears.

·         You will get the list of options. Choose the Option with Recovery Mode.

·        Again you can see the menu, you need to choose the option “root” Drop to root shell prompt.

·         Now you will enter into root shell prompt & you will get the screen like this.


     root@ubuntu:~#

·        Now you need to remount the file system will write permissions. Please use the below command for the same.

           mount -o rw,remount



Note: You need not keep any space between “,” and “remount”. If space is there it will give an error and won’t work.

·        Let’s ready with the username/user profile for which you want to reset the password. You should get the below screen when you enter the command “Passwd username”
root@ubuntu:~# passwd kapil
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@ubuntu:~#
Note: You will not observe any * value once you enter the password.

Reboot the system & login with the new password set by you.