The solution of CentOS7 forgetting root user password
1. Question:
Forget the root password, cannot log in to root, and cannot use the administrative operation of root permissions.
2. Solutions:
Step 1: enter first aid mode
Restart the system, as soon as the boot loading interface appears, quickly press the esc key (be sure to have bad eyes and quick hands), and enter the first aid mode.
Step 2: enter the first aid command mode
Step 3: load the mirror system, enter the bash environment, and use the passwd command to change the password
Step 4: enter exit to exit
Step 5: restart the system with reboot and enter a new password to log in to the system.