ºìÁªLinuxÃÅ»§
Linux°ïÖú

Linux·þÎñÆ÷°²È«Ð¡¼¼ÇÉ

·¢²¼Ê±¼ä:2005-05-22 00:10:48À´Ô´:ºìÁª×÷Õß:chentong
Èç¹ûÄãµÄLinux·þÎñÆ÷±»·ÇÊÜȨÓû§½Ó´¥µ½£¨Èç·þÎñÆ÷·ÅÔÚ¹«Óûú·¿ÄÚ¡¢¹«Óð칫ÊÒÄÚ£©£¬ÄÇôËüµÄ°²È«¾Í»á´æÔÚÑÏÖصÄÒþ»¼¡£
ʹÓõ¥Óû§Ä£Ê½½øÈëϵͳ

??LinuxÆô¶¯ºó³öÏÖboot:Ìáʾʱ£¬Ê¹ÓÃÒ»¸öÌØÊâµÄÃüÁÈçlinuxsingle»òlinux 1£¬¾ÍÄܽøÈëµ¥Óû§Ä£Ê½£¨Single-User mode£©¡£Õâ¸öÃüÁî·Ç³£ÓÐÓ㬱ÈÈçÍü¼Ç³¬¼¶Óû§£¨root£©ÃÜÂë¡£ÖØÆôϵͳ£¬ÔÚboot:ÌáʾÏÂÊäÈëlinux single£¨»òlinux 1£©£¬ÒÔ³¬¼¶Óû§½øÈëϵͳºó£¬±à¼­PasswdÎļþ£¬È¥µôrootÒ»ÐÐÖеÄx¼´¿É¡£

??·À·¶¶Ô²ß£º

??ÒÔ³¬¼¶Óû§£¨root£©½øÈëϵͳ£¬±à¼­/etc/inittabÎļþ£¬¸Ä±äid£º3£ºinitdefaultµÄÉèÖã¬ÔÚÆäÖжîÍâ¼ÓÈëÒ»ÐУ¨ÈçÏ£©£¬ÈÃϵͳÖØÐÂÆô¶¯½øÈëµ¥Óû§Ä£Ê½µÄʱºò£¬ÌáʾÊäÈ볬¼¶Óû§ÃÜÂ룺

??~~:S:walt:/sbin/sulogin

??È»ºóÖ´ÐÐÃüÁ/sbin/init q£¬Ê¹ÕâÒ»ÉèÖÃÆðЧ¡£

ÔÚϵͳÆô¶¯Ê±ÏòºËÐÄ´«µÝΣÏÕ²ÎÊý

??ÔÚLinuxÏÂ×î³£ÓõÄÒýµ¼×°ÔØ£¨boot loader£©¹¤¾ßÊÇLILO£¬Ëü¸ºÔð¹ÜÀíÆô¶¯ÏµÍ³£¨¿ÉÒÔ¼ÓÈë±ðµÄ·ÖÇø¼°²Ù×÷ϵͳ£©¡£µ«ÊÇһЩ·Ç·¨Óû§¿ÉÄÜËæ±ãÆô¶¯Linux»òÕßÔÚϵͳÆô¶¯Ê±ÏòºËÐÄ´«µÝΣÏÕ²ÎÊý£¬ÕâÒ²ÊÇÏ൱ΣÏյġ£

??·À·¶¶Ô²ß£º

??±à¼­Îļþ/etc/lilo.conf£¬ÔÚÆäÖмÓÈërestricted²ÎÊý£¬ÕâÒ»²ÎÊý±ØÐëͬÏÂÃæÒ»¸öÒª½²µÄpassword²ÎÊýÒ»ÆðʹÓ㬱íÃ÷ÔÚboot£ºÌáʾÏ£¬´«µÝ¸øLinuxÄÚºËһЩ²ÎÊýʱ£¬ÐèÒªÄãÊäÈëÃÜÂë¡£

??password²ÎÊý¿ÉÒÔͬrestrictedÒ»ÆðʹÓã¬Ò²¿ÉÒÔµ¥¶ÀʹÓã¬ÏÂÃ潫·Ö±ð˵Ã÷¡£

??ͬrestrictedÒ»ÆðʹÓãºÖ»ÓÐÔÚÆô¶¯Ê±ÐèÒª´«µÝ¸øÄں˲ÎÊýʱ£¬²Å»áÒªÇóÊäÈëÃÜÂ룬¶øÔÚÕý³££¨È±Ê¡£©Ä£Ê½Ï£¬ÊDz»ÐèÒªÃÜÂëµÄ£¬ÕâÒ»µãÒ»¶¨Òª×¢Òâ¡£

??µ¥¶ÀʹÓã¨Ã»ÓÐͬrestrictedÒ»ÆðʹÓã©£º±íʾ²»¹ÜÓÃʲôÆô¶¯Ä£Ê½£¬Linux×Ü»áÒªÇóÊäÈëÃÜÂ룻Èç¹ûûÓÐÃÜÂ룬¾ÍûÓа취Æô¶¯Linux£¬ÔÚÕâÖÖÇé¿öϵݲȫ³Ì¶È¸ü¸ß£¬Ï൱ÓÚÍâΧÓÖ¼ÓÈëÒ»²ã·ÀÓù´ëÊ©¡£µ±È»Ò²Óлµ´¦----Äã²»ÄÜÔ¶³ÌÖØÆôϵͳ£¬³ý·ÇÄã¼ÓÉÏrestricted²ÎÊý¡£

??ÓÉÓÚÃÜÂëÊÇÃ÷ÎÄûÓмÓÃÜ£¬ËùÒÔ/etc/lilo.confÎļþÒ»¶¨ÒªÉèÖóÉÖ»Óг¬¼¶Óû§¿É¶Á£¬¿ÉʹÓÃÏÂÃæµÄÃüÁî½øÐÐÉèÖãº

??chmod 600 /ietc/lilo.conf

??È»ºóÖ´ÐÐÃüÁ/sbin/lilo -V£¬½«ÆäдÈëboot sector£¬²¢Ê¹ÕâÒ»¸Ä¶¯ÉúЧ¡£

??ΪÁ˼ÓÇ¿/etc/liIo.confÎļþµÄ°²È«£¬Ä㻹¿ÉÒÔÉèÖÃÕâ¸öÎļþΪ²»¿É¸Ä±äµÄÊôÐÔ£¬¿ÉʹÓÃÃüÁ

??chattr ʮi/etc/lilo.conf

??Èç¹ûÈÕºóÄãÒªÐÞ¸Ä/etc/liIo.confÎļþ£¬ÓÃchattr -i/etc/lilo.confÃüÁîÈ¥µôÕâ¸öÊôÐÔ¼´¿É¡£

??ʹÓá°Ctrl+Alt+Del¡±×éºÏ¼üÖØÐÂÆô¶¯

??¶ÔÓÚÕâÒ»µã£¬·Ç³£ÖØÒª£¬Ò²·Ç³£ÈÝÒ׺öÂÔ£¬Èç¹û·Ç·¨Óû§ÄܽӴ¥µ½·þÎñÆ÷µÄ¼üÅÌ£¬Ëû¾Í¿ÉÒÔÓÃ×éºÏ¼ü¡°Ctrl+AIt+Del¡±Ê¹ÄãµÄ·þÎñÆ÷ÖØÆô¡£

??·À·¶¶Ô²ß£º

??±à¼­/etc/inittabÎļþ£¬¸øca£º£ºctrlaltdel£º/sbin/shutdown-t3 -r now¼ÓÉÏ×¢ÊÍ###ca£º£ºctrlaltdeI£º/sbin/shutdown-t3 -r now¡£

??È»ºóÖ´ÐÐÃüÁ/sbin/init q£¬Ê¹ÕâÒ»¸Ä¶¯ÉúЧ¡££¨±±¾© ÀîÅàÁÖ£©
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 2 ÌõÆÀÂÛ

  1. feidecheng ÓÚ 2008-04-27 14:03:11·¢±í:

    ¶¥ÏÂ:0wpoi2

  2. thej ÓÚ 2005-05-28 10:26:02·¢±í:

    ÎÒ¶¥