Single user change root password--redhat7.2 or centos7

Single user to modify the root password-red hat7.2

1. Restart the system: Press Ctrl+Alt+Del at the same time on the desktop virtual machine that is powered on.
2. Press any key before the countdown of the Grub Boot Loader ends.
3. Select the default first boot entry, And press the keyboard letter e key to edit
Insert picture description here
4. After entering the startup entry editing interface, use the keyboard arrow keys (↓) to find the first line starting with linux16, and quickly locate the cursor by pressing ctrl+e At the end of the line, enter <space key>rd. break

Insert picture description here
ps is based on the red hat7.2 single-user modification password, which is the beginning of the Red Hat RHSA exam. In the actual project, the single-user recovery password of the same-origin centos7 has also been verified. feasible.

Guess you like

Origin blog.csdn.net/qinaide56/article/details/112690716