- Power on and press "e" key
- Find the line starting with linux16 and press "End" to adjust to the end of the line
- Add breaking information: rd.break console=tty0
- Ctrl+x to enter rescue mode
- Remount the root directory in a read-write manner: mount -o remount,rw /sysroot/
- Switch to the root directory: chroot /sysroot/
- Change the password for root to 123
- Change the mode in /etc/selinux/config to disabled or touch /.autorelabel (mark the next boot to redo the SELinux label)
- exit reboot
CentOS 7 crack root password
Guess you like
Origin blog.csdn.net/anqixiang/article/details/109138509
Ranking