User authentication is major component of the Linux operation system like Ubuntu, RHEL, Fedora and more linux flavor, But some cases user forget the machine username password of the machine, In that case user can use the Rescue Mode for reset the root or another user’s password.
Rescue mode gives the capacity to boot a little Ubuntu Linux condition completely from CD-ROM, or some other boot technique, rather than the framework’s hard drive. As the name suggests, Recovery mode is given to safeguard you from something. … By booting the framework from an establishment boot CD-ROM.
In this post, We will reset the user’s password on ubuntu 16.04 and 18.04.
Go to Rescue Mode
Step 1:- You need to reboot your ubuntu machine and when you get BIOS Screen So then You need to press Esc or Shift bottom to enter Rescue Mode.
Press shift key continues.
You should get the Rescue Mode menu.
Go to Advanced options for Ubuntu
Step 2:- On rescue mode, You will get lots of recovery option, You should choose Advanced options for Ubuntu.
Select Advanced options for Ubuntu
Go to Recovery Mode
Step 3:- Now you need to select recovery mode according to your option.
Ubuntu, with Linux.x.x-generic (recovery mode)
Go to Root Menu
Step 4:- You should select “root” recovery option to reset the password, After this you will get the shell, where we can change the password of any user.
Reset Root Password
Step 5:- Now you need to execute the given command for required permission.
mount -rw -o remount /
After this, You get read and write permission to make next changes.
Now we are ready to reset the any user account’s password use the given command for that, In my case i am going to reset the root’s password.
You get the prompt to enter the new password.
After that, You need to reboot your system, 100 % You can login your ubuntu machine with new password.