en
  English
Phone :  +370 (5) 204-1903
Email: sales@1gbits.com
  1. Dedicated server
  2. Blog
  3. How to reset Ubuntu Root Password

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.

author img

Mery

Generic placeholder image
shell shockers

2018 Sep 19, 07:09:39

Thank you for sharing this useful information, I will regularly follow your blog

Generic placeholder image
the impossible quiz

2018 Sep 19, 07:09:16

Thank you for sharing this useful information, I will regularly follow your blog

Generic placeholder image
Easy.gr

2019 Sep 24, 09:09:58

Very Nice Blog..!! Thank you for sharing this information with us. It is very useful and important information for those who are doing this work at the first time.

Leave A Comment