Rescue mode after a serious fault in the Linux operating system

  
                  

1, insert the system installation CD, restart the machine, press the Del button quickly when booting, enter the CMOS, change the boot sequence to the CD first, then start the Linux installation program, press F5, press the prompt to enter Linux Return to the rescue mode, enter the rescue mode, then select the language and keyboard, you can directly press Enter, the program prompts that the Linux system on the hard disk has been installed to /mnt/sysimage, and then the super user prompt #.

2, enter the hard disk etc directory: cd /mnt/sysimage/etc, first do backup anti-failure:

cp shadow shadow.old modify the shadow file properties to be writable: chmod +w Shadow Then use vi to modify it: find the line containing the root user information: root: ...:, the first two colons are encrypted passwords, delete it (colon can not be deleted), save and exit. Thus the root password is empty 1Y0-308.

not be taken with the user's vi follows: find a DOS floppy disk is inserted, the Shadow copy to DOS disk: mcopy shadow a: /Windows CCIA Then at annex Notepad with SCSA Modify it, pay attention to open the file type must select all files (*.*), save and exit. Finally, copy it back: mcopy a:/shadow mnt/sysimage/etc

3. Change the Shadow property back to read-only: chmod -w shadow, and finally enter Exit to exit and remove the CD.

4, for safety reasons, after the restart to give should add root password in a terminal window

Copyright © Windows knowledge All Rights Reserved