Changing Forgotten Password in Ubuntu
In the current times when we have lots of password to remember, i think its quite human to forgot few. Mostly it happens with me so I thought to share this method of changing the password of Ubuntu system. In case you or your friends have forgotten the password of their Ubuntu system, it will come handy.These are the steps to change your password on Ubuntu system:
- If your system has multiple operating systems installed, from the boot options that is displayed at the time of starting the system select the "Recovery Mode".
- If your system has only Ubuntu installed, press "SHIFT" key during the boot up, and in the boot menu select "Recovery Mode".
- You will be logged in as root user and a terminal will be shown to you. Please be cautious now, in writing commands, because you are now root user and your actions will affect your entire system.
- Write this command to enable read / write mode:
mount -o rw, remount / - If you have also forgotten your username this one will be useful:
ls /home
This will display all the usernames of the users of the system. - Now comes the last step for which we have done all the above exercise:
passwd username (username is of the user whose password is needed to be changed).
Prompt will ask for new password and retype password. - If everything is alright you will see the empty prompt or a success message.
- type exit to reboot the system.