Bobcares

wesupport

CLIENT AREACall Us 1-800-383-5193
Bobcares

wesupport

Call Us 1-800-383-5193
Bobcares

wesupport

Call Us 1-800-383-5193

Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

CentOS 7 – Recover Root Password

by | Nov 2, 2021

The method to Recover Root Password in Centos 7 is totally different from Centos 6.

As part of our Server Management Services, we assist our customers with several CentOS queries.

Today, let us see how we can reset the root password in CentOS 7.

 

How to Recover Root Password in CentOS 7

Recently, we had a customer who came across issues while booting the server.

After a thorough check in the server via IKVM, we could see that the booting process was interrupted.

In addition, the prompt was asking for the root password to boot into the maintenance mode.

Since the customer couldn’t remember his root password, our Support Engineers reset the root password.

Moving ahead, let us see the steps our Support Techs employed to perform the same.

  1. Initially, in the boot grub menu, we select the option to edit.
  2. In the end, we can see a message stating, “Press ‘e‘ to edit the selected item”.
  3. Then we go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh.
  4. Now we press Control+x to start on single-user mode.
  5. After that, we access the system using the following command:
    chroot /sysroot
  6. Eventually, to reset the password, we run:
    passwd root
  7. Then we update SELinux information:
    touch /.autorelabel
  8. And then we exit chroot
    exit
  9. Finally, we go ahead and reboot the system
    reboot

[Stuck in between? We are here to help you out]

 

Conclusion

In short, we saw the steps our Support Techs employ to fix the CentOS 7 password query.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

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