How to reset forgotten root password in RHEL/CentOS-5/6

In our previous toutorial i have post , How to go single user mode in RHEL/CentOS-5/6.X .

This toutorial will help you to break root password in linux. First of all you will have to enter in to safe mode of linux then you can reset password.

Step 1 : Go to Single user mode in RHEL/CentOS-5/6.X to enter in to Save mode. 

Step 2 : Now check the status of SeLinux. If SeLinux is disabled in system then you can reset root password. If not disable, it show in Enforcing mode .. then change it to Permissive .




Step 3: If SeLinux is showing on Enforcing Mode then run below command.

#setenforce 0

#getenforce
Permissive

Step 4: Change root password.



Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment