How to reset administrative password in ubuntu
- start machine.
After the BIOS screen appears, press down theleft shift
key to enterGRUB
. 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 mode
line, and pressEnter
.
If the Linux kernel image had been upgraded on the machine before, you would see multiplerecover mode
lines on the screen. Select therecovery mode
line that corresponds to the latest Linux image(that is nearest to the top). - In the
Recovery Menu
screen click on root'Drop to root shell prompt'
. - Press
Enter
again.
If you have setroot
a password, you would be prompted to enter it at this step. Otherwise, just pressEnter
to continue. - Remount filesystem.
After all the hard work, you are now at theroot 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.
Use thepasswd
command to change the password for the admin user.$ passwd <username>
PressControl-D
to return to therecovery menu
. - Click on resume.
- Exit recovery.
PressOK
to exit recovery mode and continue booting.
Here you Go.
Password resetted successfully.
No comments:
Post a Comment