vicker313 tech blog

June 8, 2011

Recover Root Password in RHEL6

Filed under: Linux — Tags: , , — vicker313 @ 10:59 pm

There are a lot of guide lines on recovering ROOT password in a Red Hat or Fedora, by entering single user mode and change the ROOT password using passwd command. However the trick isn’t work in RHEL 6 any more, where issuing the passwd command in single user mode will not prompt you to enter the new password.

Here is a trick where I discover in order to recover the ROOT password in RHEL6.

  1. First enter single user mode. To do this, boot your machine and wait until the message to enter GRUB (the one with a counter). Press any key to enter GRUB, then press e to edit the boot argument. Just append the word single at the back of the arguments and press enter to continue boot.
  2. You should enter single user mode, with the root prompt. Instead of using entering only passwd, enter the following command:passwd -d root
  3. “-d” is meant for making the password blank. Now your root password should be blank. Reboot your machine and change your ROOT password.
Advertisements

13 Comments »

  1. thanks for posting… v helpful 🙂

    Comment by lillinonah — July 28, 2011 @ 10:23 pm

  2. thanks..it is really helpfull..

    Comment by naveen — December 9, 2011 @ 5:17 pm

  3. Thanks – wasted 1/2 hour before I found your solution – extremely helpful.

    Comment by Ray Smith — February 22, 2012 @ 1:34 am

  4. Thanks very much…. it worked….

    Comment by Vasu — March 11, 2012 @ 5:39 pm

  5. thanks for posting useful information

    Comment by Venkataramanan — July 19, 2012 @ 9:39 pm

  6. you are a genius! thanks for saving my day

    Comment by Geoffrey — August 6, 2012 @ 5:06 pm

  7. Thanx for your help. it is working very fine and I have changed my root password

    Comment by valsaraj — November 26, 2012 @ 9:27 pm

  8. Thanks Much….U saved a lot of time of mine 🙂

    Comment by Upendra Kumar Singh — February 4, 2013 @ 5:48 pm

  9. thanks kind your information
    I am very helpful your blog ….

    Comment by Niranjan Roy — June 12, 2013 @ 7:46 pm

  10. Thank you for your post..It helped me a lot!!

    Comment by SREENIVAS — June 18, 2013 @ 8:30 am

  11. I works.. 🙂 thanks Vicker

    Comment by Linux follower — December 29, 2013 @ 9:00 pm

  12. its not working again its prompting root

    Comment by nilesh — May 8, 2014 @ 10:00 pm

  13. thanks a lot frnd…
    its very helpful…

    Comment by Ganesh — May 28, 2015 @ 11:18 pm


RSS feed for comments on this post. TrackBack URI

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: