Step -1 First power on your Ubuntu machine. At the boot menu,
Step - 2 Press Esc to go in recovery mode
*Advanced options for Ubuntu
Next, select Ubuntu, with the latest kernel version (recovery mode) to boot into. The recovery mode is used to recover your system on Ubuntu and perform other tasks like resetting your password and updating your system if you can’t boot into it.
Then select the root option to drop into the root shell prompt. In this shell, you have read-only access. In order to run administrative commands, you must remount the shell with read and write permission.
Next, remount the shell with read and write option. To do that, run the commands below.
mount -rw -o remount /
After running the above commands, the shell should be remounted with read/write permission. Now you can run limited sets of commends, including password change commands as the root user.
To change or reset your forgotten password, run the commands below.
sudo passwd username
Reboot and use normally
No comments:
Post a Comment