How to Reset Forgotten Root Password in RHEL/CentOS and Fedora

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

54 Responses

  1. Medsila says:

    thanks man great

  2. pradeep says:

    Yes i have tried this option it works perfect

  3. Jim says:

    I followed the same, I had a problem. First, I have two Red Hat Linux servers. Second, I was able to recover the password for the one with OS 5.1.x. I was not able to do it on the Red Hat Enterprise Linux 6.4, it’s an appliance with nGeniusOne from Netscout Systems.

    In this box, I was able to boot to the GNUB, but when I type “a” to modify the kernel. Nothing pops up. It keeps showing the OS until I hit “Enter” and it boots to complete. Only one item as there was no previous updates. Can anyone help out?

  4. Robert says:

    That was awesome, I followed the same and was able to reset my CentOS password which had stayed blocked for close to a week

  5. Eric says:


  6. Peter Asane says:

    Wow!!, thats awesome, I was able to reset my REDHAT 5.5 password by following your tutorial. I am soo happy. Thank you very much and keep it up.

  7. Aaron says:

    Exllcellent write up helped me out grately thank you

  8. Dave w says:

    I was locked out of centos 6.6 as I had lost my password details by following your easy step recovery procedure I was able to create another password. Thankyou for this very useful information.

  9. Hector Rivera says:

    Accidentaly i changed the owner root to oroot in the password file at /etc/passwd.
    When u tired to logon the system said that root doesn’t exist. How can i change back user oroot to root in the passwd file?


Got something to say? Join the discussion.

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