Single User Mode: Resetting/Recovering Forgotten Root User Account Password in RHEL/CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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

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

You may also like...

21 Responses

  1. Vijay says:

    I don’t have root account in my centos 7, and i forgot my user account password.

    What can i do sir?

    • Ravi Saive says:


      root user created by default in each Linux installation, if you don’t know the password, you can set one using this guide.

  2. sara says:


    I had problem with single user mode when I changed file in single user mode and reboot my changes lost, I searched a lot but nothing found to solve my issue.

    any idea?

  3. Vijay says:

    Thanks, It helped to restore the root password.

  4. Mohamed says:


    Thanks it works and My Problem works fine

  5. Sujith Kawashkar A S says:


    I tried a the similar step, but it says user root not found..

  6. Furqan says:

    Hello Sir,

    My problem is centos 7 desktop password change is simply but I want how to lock and security not Change simply next time?

    Please sir help me out quickly…

Leave a Reply to Furqan Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.