Root Password cracking 01. press e to enter the menu editing mode 02. in the linux6 field, find the ro character and change it to rord. breakenforcing = 003. ctrl + x save and restart, and enter single user mode 04. go to the system root partition # chroot/sysroot
Root Password cracking
01. press e to enter the menu editing mode.
02. in the linux6 field, locate the ro character and change it to ro rd. break enforcing = 0
03. press ctrl + x to save and restart, and enter the single-user mode.
04. enter the system root partition
# Chroot/sysroot
05. modify the root password
# Passwd root
06. create a hidden file in the root directory. autorelabel (if you have added enforcing = 0 in the second step, no operation is required here)
# Pwd
# Touch/. autorelabel
07. exit and restart
# Exit
# Reboot
Reference:
Https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Terminal_Menu_Editing_During_Boot.html#sec-Recovering_Root_Password