Graphical interface GRUB and text interface lilo introduces 1. When you appear in the GRUB screen, use the upper and down keys to start the top of Linux (Don't choose DOS 哟), then press E key
2. Use the up and down button to select the one you usually start in LINUX (similar to kernel /boot/vmlinuz-2.4.18-14 ROOT = Label = /), then press E to
3. Modify the command line you see now, join Single, as follows:
Kernel /Boot/vmlinuz-2.4.18-14 Single Ro root = label = /
4. Enter back, then press B to start, you can directly enter the Linux command line
5. #vi / etc / shadow
Put the first line, that is, the ROOT: after ROOT: and next: The front content is deleted,
The first line will be similar to
root :: ......
save
6. You can also use the command: Passwd to change your password.
7. #Reboot Restart, the root password is empty LILO password Forgot method Description 1. Type the Linux Single screen when the LILO: Tips Show Lilo: Linux Single 2. Enter can enter the Linux command line 3. #vi / etc / shadow The first line, that is, ROOT: and next: The first line will be similar to root :: ... Save 4. You can use the command: passwd to change the password. . 5. #Reboot restart, the root password is empty
Graphical interface GRUB and text interface LILO separately
1. When the GRUB screen appears, use the upper and lower keys to start the top of Linux (Don't choose DOS 哟), then press [E] key 2. Use the up and down button to select the one you usually launch Linux (similar In kernel /boot/vmlinuz-2.4.18-14 Ro root = label = /), then press E-key 3. Modify the command line you see now, join Single, as follows:
Kernel /Boot/vmlinuz-2.4.18-14 Single Ro root = label = /
4. Enter the return, then press the [B] button to start, you can enter the Linux command line 5 directly.
#vi / etc / shadow
The first line, that is, ROOT: and next: The first line will be similar to root :: ... Save 6. You can also use the command: Passwd root modified password.
Passwd root
7. #Reboot restart, the root password is empty
LILO password forgot method
1. Type the Linux Single screen when the LILO: prompt is displayed, LILO: Linux Single
2. Enter to enter the Linux command line directly
3. #vi / etc / shadow will be the first line, that is, ROOT: and next: The first line will be similar to root :: ... save the first line.
4. You can use the command: Passwd to change your password.
5. #Reboot restart, the root password is empty