i forgot password to use sudo and password for logging as root from login prompt I forgot My root Password Please help me To recover my root password.i am not able update my system not able install new software.
- Boot into recovery mode from the Grub menu (using shift key if Ubuntu is the only OS)
- After the boot, go to the option Drop to Root Shell Prompt
mount -o rw,remount /
- To reset Password, type
passwd username(your username)
- Then type a new Password and exit from the shell to the recovery menu
- Select resume normal boot
- Select Ok
- Use your Ubuntu with the new Password
Please try this procedure:
restart your computer while holding the shift key until you see the boot options (it may require several attempts)
Moving up and down in the menu with arrows, choose root
on the terminal which opens type "password " followed by your user name (ex "password paul", paul being your user name)
When prompted, enter a new SIMPLE password, confirm.
After re-booting your computer, change again your password to a more sophisticated one.
If you face any problem with step 3 do :
mount -rw -o remount /