RedHat7.2 How to enter a single user when using the GRUB boot program
1. When the GURB boot screen appears, press the letter e to enter the GRUB editing state
2 In the boot menu Then add "1" or single, select it, and then press the letter b to boot into single-user mode.
For example:
red hat linux 7.2, the boot menu when not edited is:
RedHat Linux (2.4.7-10) root (hd0,1)kernel /boot /vmlinuz-2.4.7-10 ro root=/dev/hda2
Then edit, add "1" or single after it, so that it is as follows: RedHat Linux (2.4.7-10) root ( hd0,1)kernel /boot/vmlinuz-2.4.7-10 ro root=/dev/hda2 1.
In single-user mode, use the passwd command to change the password.
Reboot the system
RedHat9 How to enter a single user when using the GRUB boot program
When using GRUB, you can add an S (capital S) to the kernel command line, Can enter single user mode. To do this, you need to restart the system. When the GRUB screen appears:
1. Use the arrow keys to select the kernel you want to boot.
2. Press the e key to edit this command line.
3. Select the line starting with the word kernel.
4. Press the e key to edit this command line.
5. Add a letter S at the end of the line
6. Press Enter to accept the changes.
7. Press b key to accept the modification and start the kernel.
This will enter single-user mode and you can execute commands under bash.
The above is the detailed content of Introduction to how to enter single-user mode in Linux. For more information, please follow other related articles on the PHP Chinese website!