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...

63 Responses

  1. Rahul says:

    Hi All, I am new to Linux. I tried to break my root password with above method. but when i interupt the grub, and type a, nothing comes up. After sometime it just loads the default OS version, but when i give e instead of a, and use different sets of commands, I am able to change the root password. Can some one tell what am i missing in the above method. I am using centos 7 in my VM.

  2. Paul says:

    Same here as @ravi. It’s giving me “give the root password for maintenance.“. Version 2.6.32-358.0.1.el6.i686

    • Ravi Saive says:

      Thanks for sharing, let me try the same instructions on my CentOS 6, will get back to you with solution.

  3. ravi says:

    It is giving the massage that give the root password for maintenance.

    i am not able to attach the screenshot

    • Ravi Saive says:

      @Ravi,

      Which version of Linux distribution are you using? mostly it wouldn’t ask for password in maintenance mode, either you doing wrong, follow the instructions carefully..

Got something to say? Join the discussion.

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