Linux °æ (¾«»ªÇø)

·¢ÐÅÈË: hbt (Country Roads), ÐÅÇø: Linux
±ê  Ìâ: Ò»¸ö¼òµ¥µÄÏÞʱµÇ¼·½·¨!
·¢ÐÅÕ¾: ×Ï ¶¡ Ïã (Fri Dec 25 18:40:41 1998), ×ªÐÅ

×Ô¼ºÐ´Èý¸öshell³ÌÐò£¬µ÷ÓÃatºÍϵͳά»¤¹¦ÄÜ£º
   1. ÔÚÖ¸¶¨µÄʱ¼äÖ´ÐиÃshell£¬ÔÚ/etcÏÂÉú³ÉÒ»ÃûΪnologinµÄÎļþ£¬È磺
   vi /sbin/login.denied
   echo " Login Denied " > /etc/nologin
   chmod 700 login.denied
 2. ÔÚÖ¸¶¨µÄʱ¼äÖ´ÐиÃshell£¬É¾³ý/etc/ϵÄnologinÎļþ£¬È磺
   vi /sbin/login.allowed
   if [ -f /etc/nologin ]; then
   rm /etc/nologin
   fi
   chmod 700 login.allowed
   3. ±àдһ¸öÏÞÖÆʱ¼äµÄshell£¬È磺
   vi /sbin/security
   if [ -f /sbin/login.denied ]; then
   at -f /sbin/login.denid 22:00
   fi
   if [ -f /sbin/login.allowed ]; then
   at -f /sbin/login.allowed 8:00
   if
   ´ËÖÖÉèÖõŦÄÜÊÇ£º´ÓÍíÉÏ10:00µ½µÚ¶þÌìÔçÉÏ8:00¾²Ö¹·ÇrootÓµ»¤µÇ¼£¬ÏÔʾÎ
   ª
   ÏµÍ³Î¬»¤×´Ì¬¡£
   ÁíÍ⣬»¹Ðè¶ÔrootÓû§µÄµÇ·Öն˽øÐÐÏÞÖÆ£¬×îºÃÉèÖÃÔÚconsole. ÔÚRedHat
   5.0ÏÂ
   ÔÚ /etc/security/access.confÖÐÅäÖãº
 -:root:ALL EXCEPT console
   ¾Í¿ÉÒÔÁË¡£

--
        Êé ÖР×Ô ÓР»Æ ½ð ÎÝ £¬ 
                    Íø Âç ¸ü Ê¤ Ç§ ±¾ Êé .
         

¡ù À´Ô´:£®×Ï ¶¡ Ïã bbs.hit.edu.cn£®[FROM: hs8.hit.edu.cn]
[°Ù±¦Ïä] [·µ»ØÊ×Ò³] [Éϼ¶Ä¿Â¼] [¸ùĿ¼] [·µ»Ø¶¥²¿] [Ë¢ÐÂ] [·µ»Ø]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.042ºÁÃë