Reset admin password ubuntu
How to reset administrative password in ubuntu
- start machine.
After the BIOS screen appears, press down the
left shiftkey to enter
GRUB. This step can be quite finicky, and you may need to repeat it several times until you get the timing just right.
- Select the Advance Option for ubuntu
- In Grub Version list, scroll down to the top
Recovery modeline, and press
If the Linux kernel image had been upgraded on the machine before, you would see multiple
recover modelines on the screen. Select the
recovery modeline that corresponds to the latest Linux image(that is nearest to the top).
- In the
Recovery Menuscreen click on root
'Drop to root shell prompt'.
If you have set
roota password, you would be prompted to enter it at this step. Otherwise, just press
- Remount filesystem.
After all the hard work, you are now at the
root shell prompt. The filesystem at this point is read-only. Remount the file system to add write permission.
$ mount -o rw,remount /
- Reset admin user password now.
passwdcommand to change the password for the admin user.
$ passwd <username>Press
Control-Dto return to the
- Click on resume.
- Exit recovery.
OKto exit recovery mode and continue booting.
Here you Go.
Password resetted successfully.