en
  English
Phone:  +1 (217) 636-4164
Skype:  onegbits
  1. Home
  2. Blog
  3. How to reset Ubuntu Root Password

How to reset Ubuntu Root Password

How to reset Ubuntu Root Password

04

Mar, 18

5384

Step 2 - Modify boot options

Now in order to modify Ubuntu boot options, you must find the line starting with "linux". Navigate to the end of the line and add the following content as you see on the below image:
init=/bin/bash
 password

Step 3 - Boot your system

After changing boot options in the previous step, press F10 to force your Ubuntu system to boot. Your system will boot and you will be provided with root command line prompt.

Step 4 - Reset your Lost Password

Now enter the following commands in the command line prompt:
# mount -o remount,rw /
# passwd
The second command will change your password.
# reboot -f
You have completed Lost Password Recovery process.

Step 5 - Login with your new password

After rebooting, login as root user with your new password.

Congratulations! You have learned How to reset Ubuntu Root Password.

If you are facing any problem with the steps, feel free to comment here. We will help you to solve the issue.

Leave A Comment