What should I do if I forget the root password?

xiaoxiao2021-03-06  35

1. Start with CD, type Linux Rescue2, Chroot / MNT / Sysimages (like, not clear) There is a prompt 3, change Timeout 0 to 10, / boot / grub / grub.conf 4, passwd input

New Password

I. LILO 1. In the appearance of LILO: Type Linux Single screen to display lilo: Linux Single 2. Enter the bus from entering the Linux command line 3. #vi / etc / shadow will be the first line, that is, the row started with root ROOT: The next: The first line will be similar to root :: ... Save 4. #Reboot Restart, the root password is empty

II. GRUB 1. When the GRUB screen appears, use the top button to select the one you usually start "Don't choose DOS 哟), then

Press E-key 2. Use the up and down key to select the one you usually start Linux (similar to Kernel)

/BOOT/VMLINUZ-2.4.18-14 ROOT = label = /), then press E-key 3. Modify the command line you are now, join SINGLE, the result is 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 will first line, that is, ROOT: after ROOT: Next: The first line will be similar to root :: ... Save 6. #Reboot Restart, the root password is empty

转载请注明原文地址:https://www.9cbs.com/read-62315.html

New Post(0)