Subject: Re: [Áú¹®]ÀÏ¹Ý À¯ÀúÇÑÅ× shutdown ±â´É ÁÖ°í ½Í¾î¿ä.. Date: 17 Apr 1999 01:41:18 GMT From: ÀåÀç¿ë "jaeyjang@lgeds.lg.co.kr" Organization: NetPle Usenet Service Newsgroups: han.comp.os.linux /sbin/shutdownÀÇ ±âº» Æ۹̼ǰªÀº 0755 ÀÔ´Ï´Ù. Æ۹̼ǿ¡ ´ëÇØ °øºÎÇϽô٠º¸¸é set-user-id(or set-owner-id), set-group-id, stiky bit ¶ó´Â °ÍÀÌ ³ª¿Ã °Ì´Ï´Ù. ´ëºÎºÐ ½ÇÇàÆÄÀÏÀÇ Æ۹̼ÇÀ» 777·Î Çߴµ¥µµ ÀÏ¹Ý »ç¿ëÀÚ°¡ ½ÇÇàÇÒ ¼ö ¾ø´Ù¸é, À§ set-user-id, set-group-id°¡ ¼³Á¤µÇÁö ¾Ê¾Æ¼­ ±×·¸½À´Ï´Ù. Áï ÇÁ·Î±×·¥ ³»ºÎ·ÎÁ÷¿¡¼­ ÀÌ ÇÁ·Î±×·¥À» ½ÇÇàÇÏ´Â »ç¿ëÀÚ°¡ rootÀÎÁö ¾Æ´ÑÁö üũ¸¦ ÇÏ´Â °ÍÀÌÁö¿ä. È¥ÀÚ »ç¿ëÇÏ´Â ¼­¹ö°¡ ¾Æ´Ñ °æ¿ì¿¡´Â ´ëºÎºÐ shutdown¿¡´Â ´Ôó·³ set-user-id¸¦ ¼³Á¤ÇÏÁö ¾Ê½À´Ï´Ù. ºÒƯÁ¤ ´Ù¼ö¿¡°Ô shutdownÀ» Çã¿ëÇÒ ¼ö´Â ¾ø´Â °ÍÀÌÁö¿ä... 0755 : -rwxr-xr-x 4755 : -rwsr-xr-x /etc/shutdown.allow¿¡ ´ëÇؼ­´Â ¿ÀÇØÀÇ ¼ÒÁö°¡ ÀÖ½À´Ï´Ù. ÀÏ¹Ý À¯´Ð½º(HP-UX µî:Á¦°¡ HP-UX¸¦ »ç¿ëÇϰŵç¿ä)¿¡¼­´Â /etc/shutdown.allow°¡ ÀϹÝÀûÀ¸·Î ÀÌÇصǵíÀÌ shutdownÀ̶ó´Â ¸í·É¾î¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Â ±ÇÇÑÀ» ¼³Á¤ÇÏ´Â ÆÄÀÏÀÌÁö¸¸, ¸®´ª½º¿¡¼­´Â ´Ù¸¨´Ï´Ù. ¸®´ª½º¿¡¼­´Â ÀÏ¹Ý À¯´Ð½º¿Í ´Þ¸® CTRL-ALT-DEL ·Î rebootÀÌ °¡´ÉÇÕ´Ï´Ù. ¸¸¾à ¸®´ª½º·Î ¾Æ¹«³ª Á¢±ÙÇÒ ¼ö ÀÖ´Ù¸é ±»ÀÌ root·Î ·Î±äÇÏÁö ¾Ê´õ¶óµµ CTRL-ALT-DELÀ» ´­·¯ reboot ½Ãų ¼ö ÀÖ°ÚÁö¿ä. ±×·¯ÇÑ »óȲÀ» ¸·±â À§ÇØ /etc/shutdown.allow°¡ Á¸Àç ÇÏ´Â °Ì´Ï´Ù. CTRL-ALT-DELÀ» ´©¸£¸é init(8)ÀÌ /etc/inittabÀ» ÂüÁ¶Çؼ­ /etc/shutdown.allow¿Í login id¸¦ ºñ±³Çؼ­ ¸ÂÀ¸¸é shutdownÀ» È£ÃâÇÕ´Ï´Ù. ±âº»ÀûÀ¸·Î shutdown.allow ÆÄÀÏÀº Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. ¾øÀ¸¸é ¸¸µé¾î Áà¾ßÁö¿ä. # cat /etc/shutdown.allow root À§¿Í °°Àº ¼³Á¤ÀÌ µÇ¾î ÀÖÀ¸¸é ÀÏ¹Ý »ç¿ëÀÚ°¡ ȤÀº login: ÇÁ·ÒÇÁÆ® »ó¿¡¼­¶óµµ CTRL-ALT-DELÀ» ÇÏ´õ¶óµµ ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ ¹Þ°Ô µË´Ï´Ù. shutdown: no authorized users logged in From Åä³×À̵µ >±Ùµ¥ ¹Ìó shutdown Æ۹̼ÇÀ» È®ÀÎ ¾ÈÇغ¸°í .. >chmod 4755 /sbin/shutdown À» ½ÇÇàÇؼ­.. >Æ۹̼ÇÀÌ ¾î¶»°Ô º¯ÇÑ°ÇÁö¸¦ ¸ð¸£°Ú½À´Ï´Ù. > >³ªÁß¿¡ ½Ã°£µÇ½Ã¸é Æ۹̼ÇÀÌ ¾î¶»°Ô ¹Ù²î´Â °ÇÁöµµ ºÎŹµå¸³´Ï´Ù. >±×¸®°í ÀÌ·¸°Ô ¹Ù²Ù¸é /etc/shutdown.allow¿¡ µî·ÏÀÌ ¾ÈµÇµµ >¸ðµç ÀÏ¹Ý À¯ÀúµéÀÌ ÄÄÀ» ²ø ¼ö Àִ°ǰ¡¿ä? -----------------===== Posted via NetPle Usenet Service =====----------------- http://news.NetPle.com ¿¡ Á¢¼ÓÇÏ½Ã¸é »õ·Î¿î À¯Áî³ÝÀÌ ¿­¸³´Ï´Ù.