Home > Security > Recover root Password

Recover root Password

You forgot your root password… Nice work. Now you’ll just have to reinstall the entire operating system. Sadly enough, I’ve seen more than a few people do this. But it’s surprisingly easy to get on the machine and change the password. This doesn’t work in all cases (like if you made a GRUB password and forgot that too), but here’s how you do it in a normal situation.

  1. Boot your computer until the GRUB screen shows up.
  2. Press enter so that you stay on the GRUB screen instead of proceeding all the way to a normal boot. 
  3. Select the kernel that you want to boot and press E to edit the line.
  4. Use the arrow key again to highlight the line that begins with kernel, and press E to edit the kernel parameters.
  5. Append the number 1 (one) to the end of the line.
  6. Press B to boot the system.

The system will boot up in single-user mode and at some point you will see the UNIX prompt:


Once here you can run the passwd command and change the password to whatever you like.

sh-3.01# passwd root
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully

Now you can reboot, and the machine will boot up with your new password.

Categories: Security Tags:
  1. July 28, 2009 at 21:05

    prosim si eslo zabudla so ho

  2. November 16, 2012 at 00:12

    Nice weblog here! Additionally your web site rather a lot up very fast! What host are you the usage of? Can I am getting your affiliate link on your host? I desire my web site loaded up as quickly as yours lol

  3. October 20, 2014 at 03:49

    I believe this is one of the such a lot important information for
    me. And i am glad reading your article. However wanna commentary on some normal things, The website style is great, the articles is really great : D.
    Just right process, cheers

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: