As we all know, in RHEL5, the root password modification method is relatively simple. In single-user mode, passwd can be modified successfully. However, this action does not work in RHEL6. Currently, there are three ways to modify it. Use a CD to enter the repair mode. I will not introduce this method here. Through network search and self-exploration, it is determined that there are two remedies in the virtual machine to solve the root resetting problem. The first skewness. (Similar to RHEL5) switch to single-user mode, disable selinux, and then you can
As we all know, in RHEL5, the root password modification method is relatively simple. In single-user mode, passwd can be modified successfully.
However, this action does not work in RHEL6.
Currently, there are three ways to modify it. Use a CD to enter the repair mode. I will not introduce this method here. Through network search and self-exploration, it is determined that there are two remedies in the virtual machine to solve the root resetting problem.
The first skewness. (Similar to RHEL5)
In single-user mode, disable selinux and then modify the settings.
Setenforce 0
Passwd
The second skewness. (This is a brutal method. I have not come up with any idea about this, but it is actually feasible)
Still enters the single-user mode. Modify the/etc/passwd file and delete x in the first line of root: x:. Enter level5 mode and log in with the root account (no password is required at this time ), now you can change the root password.