Red Hat 7.2
Start the interface first
Press ↑↓ key, enter the following interface, select the first item, press the E key to edit
Now the picture to find RO
Change to RW init=/sysroot/bin/sh
Then press CTRL X to start
It goes into emergency mode after launch.
Execute the change command after entering
#chroot/sysroot
#
Check if SELinux is off and the server will not start if it is not turned off
#getenforce
#Disabled
If the
#enabled
Executable
#vi/etc/selinux/config
Perform
: Wq
Save exit
Execute the Change Password command
#passwd
Enter Password two times
Tip All authentication Tokens updated successfully
Identify successful modifications
Subsequent execution
#exit
#/bin/sh Shutdown-r Now
Restart
Change Root password complete
Red Hat 6 Change root password
Press the ↑↓ key at startup,
Press E to edit
Select the second kernel to edit again by E
After the quiet, space 1, then enter.
Then press B to start
Enter single-user mode after booting
Perform
#passwd
Perform a red Hat 6 restart command
#reboot
Red Hat 6 root password is ready to be modified
Red Hat 7.2 Red Hat 6.5 ROOT user password recovery