Reset forgotten root password in Linux

Forgot your root password?? No problems, this is how you can reset your root password:

For this press e when GRUB selection menu pops up. Now write the following as parameter: init=/bin/bash
Now press Enter. You will get a # prompt. Now write the following command to change your root password.
#passwd
Now enter your new desired password twice.
Reboot your system & now you can login to your system as root with the newly set root password.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>