Find three ways to retrieve the ROOT password (LILO / GRUB):
Method 1. In the system enters the single user status, use passwd root to change, or modify the shadow file to implement method. Use the installation CD boot system to perform the Linux Rescue status, the original / partition mount, the data is as follows: CD / MNT MKDIR HD Mount -t Auto / DEV / HDAX (the partition number where the original / partition is located) HD CD HD chroot ./ Passwd root can get the method three. Take the hard disk of this unit and hang it on other Linux systems. The way is the same as the second
Enter a single user mode method
I. LILO 1. Type the Linux Single screen when the LILO: prompt is displayed. LILO: Linux Single 2. Enter can enter the Linux command line. That item (don't choose DOS 哟), then press E-key 2. Use the up and down button to select the one you usually launch Linux (similar to kernel /boot/vmlinuz-2.4.18-14 ROOT = label = /) , Then press E-key 3. Modify the command line you are here, join SINGLE, as follows: kernel /boot/vmlinuz-2.4.18-14 Single Ro root = label = / 4. Enter back, then press B You can go directly to the Linux command line directly.
Modify the method of recovering the root password of the shadow file
1. #vi / etc / shadow will be the first line, ie ROOT: and next: The first line will be similar to root :: ... Save 2. At this time, the root password is empty.