¸®´ª½º ¼³Ä¡¿Í ±âº» »çÇ× ´À²¸º¸ÀÚ! ¼³Ä¡¹× ±âº», Çϵå¿þ¾î´Â ³ª¿¡°Ô ¿À¶ó! ³ë°¡´ÙÀÇ Áø¼ö¸¦ ¹ÚÁø¿ìreduck96@linux.uos.ac.kr Á¦ 2ȸ ¸®´ª½º °øµ¿Ã¼ ¼¼¹Ì³ª ÀÚ·áÁý ÃÑ 6´Ü°è·Î ³ª´©¾îÁ® ÀÖ´Â 'Everything ÁÖÁ¦¾øÀ½'Àº Ãʺ¸ÀÚ, ±×·¯³ª ls°°Àº ¸í·ÉÀº ¾Ë°í °è½Ã´Â ºÐµéÀ» À§ÇØ ¸¸µé¾îÁ® ÀÖ½À´Ï´Ù. °¢ ¼¼ºÎ ¸í·ÉÀº ÀÚ¼¼È÷ ¾²µµ·Ï ³ë·ÂÇÏ °Ú½À´Ï´Ù¸¸, ÀÏ´Ü Àç¹ÌÀÖ°Ô ¸¸µé±â À§ÇØ ¾È³»¹®À» ÀÛ¼ºÇÏ¿´½À´Ï´Ù. Á¦°¡ ¼¼¹Ì³ª ´çÀÏ ÇÏ´Â ³»¿ëÀº ¿©±â ÀûÇôÀÖ´Â ³»¿ë°ú´Â ´Ù¸¦°ÍÀÔ´Ï´Ù. Áï, ¼¼¹Ì³ª¶§´Â Á¦¸ñó·³ ÁÖÁ¦°¡ ¾ø½À´Ï´Ù. ¸ðµç Áú¹®À» ±× ÀÚ¸®¿¡¼­ Ç®¼öÀִ°ÍÀº Ç®¾î¹ö¸®°í ¾È µÇ´Â °ÍÀº Á¤¸®Çؼ­ ´äÀ» µå¸®°Ú½À´Ï´Ù. ÀÌ ±ÛÀº Áß±Þ°úÁ¤À̶ó ÇÒ ¼ö ÀÖ°ÚÁö¿ä. ±×·¯³ª ¾î·Á¿î ¸»Àº ¾È Çϵµ·Ï ÇÏ°Ú½À´Ï´Ù. ______________________________________________________________________ ¸ñÂ÷ 1. Áغñ¹° 2. ¸®´ª½º? ´Ù½Ã ±ò¾Æº¼±î ¾Æ´Ô ±×³É ³öµÑ±î? 3. ¿ìÀ×? ¼Ò½º? Oh, NO! ÀÏ´Ü ÄÄÆÄÀϺÎÅÍ! 3.1 ¼Ò½º ±¸Çϱâ 4. ¸®´ª½º¹Ú½º Çϳª·Î ´Ù¼öÀÇ À¥¼­ºñ½º¸¦? 5. tcpwraper´Â ½Ãü°¡ ¾Æ´Ï´Ù! 6. Service : Hardware µÉ¶§±îÁö ¹Ù²Ù¾î¶ó! 6.1 PNPÀÇ °æ¿ì Àß»ý±â´Â Çö»ó 6.2 isapnp¸¦ ÀÌ¿ëÇÏ¿© Àâ°í½Í¾î¿ä 6.3 Çϵå¿þ¾î°¡ windog¿¡¼­µµ Àß ¾ÈÀâÇô¿ä. 6.4 moduleÀ» ¿Ã¸®°í ½Í¾î¿ä. ¾î¶»°Ô ÇØ¿ä? ______________________________________________________________________ 1. Áغñ¹° 1. µå¶óÀ̹ö(½ÊÀÚ¸ð¾ç ±×¸®°í ÀÚ¼®´Þ¸°°Í), ·Õ³ë¿ìÁî»Ú¶óÀ̾î, ´ÏÆÛ 2. ¶ß°Å¿î¹°,Âù¹° 3. »ç¹ß¸é,Ä¿ÇÇ,Äݶó,ÁÖ½ºµîµî ÀÚ, ÀÌÁ¦ CD¸¦ ³Ö°í ÄÄÇ»Å͸¦ ÄѺ¼±î¿ä? 2. ¸®´ª½º? ´Ù½Ã ±ò¾Æº¼±î ¾Æ´Ô ±×³É ³öµÑ±î? À̹ø¿¡ ³ª¿Â AlzzA 6.0Àº glibcÀÇ ¹öÁ¯ÀÌ ³î¶ó°¡¸é¼­ ±âÁ¸ÀÇ ¹öÀü¿¡¼­ ¸¸µç ÇÁ·Î±×·¥°ú ¿­¹ÞÁö¸¸ ȣȯµÇÁö ¾Ê½À´Ï´Ù. ±×·¸´Ù°í ´Ù½Ã °¥¾Æ¾þ±â¿¡´Â ±×µ¿¾È °øµéÀÎ ½Ã°£ÀÌ ¾Æ±õ°í... ÇÑ ¿¹·Î ¸®´ª½º¸¦ ¹«Áö¹«Áö ÁÁ¾ÆÇÏ´Â ÇѺÐÀÌ ¾ËÂ¥°¡ ³ª¿ÀÀÚ¸¶ÀÚ ±ò°í XÀÇ ±× ȯ»óÀûÀÎ ¸ð½À¿¡ ³ÌÀ» ÀÒ¾ú½À´Ï´Ù. ±×·¯³ª ±×°Íµµ Àá½Ã... ±×µ¿¾È ¸¸µé¾ú´ø °¢Á¾ ÇÁ·Î±×·¥µéÀÌ ¾Èµ¹¾Æ°¡°í, À¥¼³Á¤µµ ´Ù½ÃÇؾßÇÑ´Ù´Â ºÒ¾È°¨¿¡ ½×ÀÌ°Ô µÇ¾úÁÒ. ±×µÚ·Î Çѽ𣠵Ú, °Ü¿ì°Ü¿ì À¥¼³Á¤À» ³¡³»°í ³¡³» °Ç¹° ¼öÀ§¾ÆÀú¾¾ÀÇ µî½Ò¿¡ ¸øÀÌ°Ü ÁýÀ¸·Î µ¹¾Æ°¡¸é¼­ »ó½É¿¡ Àá°å´Ù´Â Àü¼³°°Àº(?) À̾߱⸦ ¿©·¯ºÐµé¿¡°Ô ÀüÇص帮Áö ¾ÊÀ»¼ö°¡ ¾ø³×¿ä. ÀÌÁ¦ ¸®´ª½º´Â ¼³Ä¡¸é¿¡¼­´Â Windogº¸´Ù Ź¿ùÇÏ°Ô Àß ±ò¸°´Ù´Â°ÍÀ» ¿©·¯ºÐµéµµ Àß ¾Æ½Ç°ÍÀÔ´Ï´Ù. ±×·¯³ª ÀÚ½ÅÀÇ È¯°æ¿¡ ¸Â´Â ¼³Á¤À» Çϴ°ÍÀº ¿À·£ °æÇè°ú ½Ã°£À» ¿ä±¸ ÇÕ´Ï´Ù. À¥¼­¹öÀÇ °æ¿ì, /etc/httpd°¡ °¡Àå ¹®Á¦°¡ µÇ°í¿ä, °èÁ¤¼­ºñ½º¹× ¸ÞÀÏ ¼­ºñ½º ¸¦ ÇÏ´Â »ç¶÷ÀÇ °æ¿ì´Â /etc/passwd,/etc/group, /homeÀÌ Áß¿äÇÏÁÒ. oracleÀÇ °æ¿ì´Â /home/oracleÀÌ Áß¿äÇÏ°í, postgresÀÇ °æ¿ì´Â /var/lib/pgsqlÀÌ Áß¿äÇÏÁÒ. ¾Æ, ¸ÞÀϵµ »©¸ÔÀ»¼ö°¡ ¾ø°ÚÁö¿ä? /var/spool/mailÀÔ´Ï´Ù. ÀÚ, Çѹø Á¤¸®ÇØ º¼±î¿ä? »õ·Î ¾÷µ¥ÀÌÆ® µÇ±âÀü¿¡ ÇѹøÂë ¹é¾÷À» Çصξî¾ß ÇÒ µð·ºÅ丮 ÀÔ´Ï´Ù. /etc /usr/local /usr/src/redhat /var/spool /var/log /var/lib /home /root À§ÀÇ µð·ºÅ丮 ¸»°íµµ °ü¸®ÀÚ°¡ Ưº°È÷ ƯÁ¤ÇÑ°÷¿¡ ³Ö¾î µÑ¸¸ÇÑ ÆÄÀÏÀÌ ÀÖ´ÂÁö Çѹø »ý°¢ÇØ º¸¼¼¿ä. ¿¹¸¦ µé¾î ¾ßÇÑ »çÁø µîÀÌ¿ä. Á¦°¡ ¾Æ´Â »ç¶÷ÀÇ °æ¿ì ÀÌ°÷¿¡ ³Ö´õ±º¿ä. /usr/X11R6/lib/X11/fonts/misc/pics Èì... Á» Èûµé°ÚÁÒ? ¹¹, ´õ ±æ°Ô ¸¸µé¾î¼­ ³Ö¾îµÎ´Â °æ¿ìµµ ÀÖÁö¸¸¿©... ³Ê¹« »û±æ·Î ºüÁ³±º¿ä. ¿©ÇÏÆ° ÀÌ·¯ÇÑ °æ¿ì°¡ ¸î¸î»ç¶÷µé¿¡°Ô È®½ÇÈ÷ ÀÖ¾úÀ¸´Ï, Á¶½ÉÇϽñ⠹ٶø´Ï´Ù. ÀÚ¾Æ, Çѹø °¡Á¤À» Çغ¸°í OS¸¦ ¾÷±×·¡À̵å Çغ¾½Ã´Ù. ÀÇ·ÚÀÎ : "Àú´Â 200¸íÀÇ °èÁ¤À» °ü¸®ÇÕ´Ï´Ù. ¸ÞÀÏ°ú home, ±×¸®°í À¥À» °ü¸®ÇÏ°í ÀÖ½À´Ï´Ù. ±×¸®°í /usr/localÂÊ¿¡ Ư¼öÇÑ ÇÁ·Î±×·¥µéÀÌ ¸î¸î ÀÖ½À´Ï´Ù. ƯÈ÷ sogobanÀÇ °æ¿ì´Â È®½ÇÈ÷ ½ÇÇàµÇ¾î¾ß ÇÕ´Ï´Ù. ¹¹³Ä±¸¿ä? ¹ÙµÏÇÁ·Î±×·¥ÀÔ´Ï´Ù." ÀÚ, ÀÌÁ¦ ¿ì¸®µéÀº ÀÌ ÀÇ·Ú¸¦ ¹Þ°í ¾÷µ¥ÀÌÆ®ÇØÁÖ´Â ³ë°¡´Ù¸Ç(?)ÀÌ µÇ´Â °ÍÀÔ´Ï´Ù. ÀÏ´Ü ÆÇ´ÜÀ» ÇÕ´Ï´Ù. ÀÌ »óȲ¿¡¼­ °ú¿¬ ¾ó¸¶¸¸Å­ È¿À²ÀûÀ¸·Î ÇÒ ¼ö ÀÖÀ»°ÍÀÎÁö¿ä. glibcÀÇ ¹öÀüÀÌ ¹Ù²î¹Ç·Î ÀÏ´ÜÀº shared binaryµéÀ» ¹é¾÷ÇÒ »ý°¢Àº ¹ö¸®ÀÚ. ´Ü, static binaryµéÀº ¼ö´Ü°ú ¹æ¹ýÀ» °¡¸®Áö ¸»°í »ì¸®ÀÚ. ±×¸®°í ¼Ò½º°¡ ÀÖ´Ù¸é À̰ͶÇÇÑ ¼ö´Ü°ú ¹æ¹ýÀ» °¡¸®Áö ¸»°í ¹é¾÷ÇØ¾ß ÇÑ´Ù. ´ÙÀ½Àº °¢ °èÁ¤¿¡ ÇØ´çµÇ´Â homeÀ» ¹é¾÷ÇÏÀÚ. ±×´ÙÀ½Àº /etcÀÇ ¼³Á¤ÆÄÀϵéÀ» ¹é¾÷ÇÏÀÚ. ±×³É passwd¿Í group¸¸ ¹é¾÷Çؼ­ ³ªÁß¿¡ Åë°îÇÏ´Â ÀÏÀÌ ¾øµµ·Ï ÇسõÀÚ. etc¸¸Å­Àº Á¤¸»ÀÌÁö È®½ÇÈ÷ Åë°·Î ¹é¾÷Çسõ´Â°ÍÀÌ ÁÁ½À´Ï´Ù. Àڽŵµ ¸ð¸£´Â»çÀÌ¿¡ ¼³Á¤À» µü Çسõ¾ÒÀ»Áö ¸ð¸£±â¶§¹®ÀÌÁÒ. Àúµµ ÇÑ 2 3¹ø Á¤µµ ´çÇϴϱñ ³ªÁß¿¡´Â ²À ¹é¾÷À» ÇÕ´Ï´Ù. ´ÙÀ½Àº ¸ÞÀÏ spoolµð·ºÅ丮ÀÔ´Ï´Ù. À̰ͶÇÇÑ Áß¿äÇÏÁÒ. ¸ÞÀÏ¿¡ ¸ñ¸Þ´Ù´Â »ç¶÷µéÀÌ ²À Çѵλç¶÷ Àֱ⶧¹®¿¡, Áß¿äÇÕ´Ï´Ù. ÀÚ, ÀÏ´Ü ´Ù¸¥ Çϵå¶Ç´Â DAT°°Àº°ÍÀ¸·Î ¹é¾÷À» µÎ¼¼±ºµ¥ ÇسõÀ¸¼Ì´Ù¸é ÀÌÁ¦ ¸¶Áö¸·À¸·Î Á¡°ËÀ» Çغ¾½Ã´Ù. À̶§ ÁÁÀº ¹æ¹ýÀ¸·Î´Â ÀÌ»óÇÏ°Ô »ç¿ëÇϸ鼭µµ Àß ¾²´Â »ç¶÷À» ÃʺùÇؼ­ ¹°¾îº¸°Å³ª »ç¿ëÇϴ°ÍÀ» ÁöÄѺ¸´Â ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù. ¹¹, Áö¿ì°Å³ª ¹Ú»ì³»´Â °ÍÀº °ü¸®ÀÚ ¸¶À½À̴ϱñ.... Ã¥ÀÓÁú ¼ö ÀÖÀ¸¸é ÀÌÁ¦ ÄÄÇ»Å͸¦ ²ô°í ¾÷µ¥ÀÌÆ®ÇÒ CD¸¦ ³Ö½À´Ï´Ù. ÀÚ, ¸®´ª½º¸¦ 10ºÐ¾È¿¡ ±ò°í ´ÙÀ½ root³Ö°í º¹±¸ÇÒ Áغñ¸¦ ÇսôÙ. ÇÑ°¡Áö ¿ì¸®°¡ ¸ÕÀú °èȹÇÒ°ÍÀÌ ÀÖ½À´Ï´Ù. ¹Ù·Î º¹±¸½Ã°£ÀÌÁÒ. º¹±¸½Ã°£ÀÌ ¿À·¡°É¸®¸é Àç¹Ì°¡ ¾ø°ÚÁÒ? ªÀ¸¸é ªÀ»¼ö·Ï ÁÁ½À´Ï´Ù. ¹Ýº¹ÇнÀÀ» ÇϽøé ÁÁ°ÚÁö¸¸, ±×·¸°Ô ÇÏ¸é °ü¸®Á÷¿¡¼­ ³»Âѱæ À§Ç輺ÀÌ Ä¿Áö¹Ç·Î Çѹø ÇÒ¶§¸¶´Ù ¸ñ¼ûÀ» °É°í ÇÑ´Ù´Â »ý°¢À» °¡Áö°í Çϼ¼¿ä. Àú´Â 2½Ã°£À» µå¸®°Ú½À´Ï´Ù. ƯÁ¤ÇÑ ÀϾøÀÌ ´Ü¼ø ¾÷µ¥ÀÌÆ®ÀÇ °æ¿ì, 2½Ã°£À̸é ÃæºÐÇÕ´Ï´Ù. ______________________________________________________________________ !! Áß¿ä !! ¼³Ä¡½Ã RedHat 5.2¿¡¼­ RedHat 6.0À¸·Î ¾÷µ¥ÀÌÆ® ÇÒ¶§´Â update°¡ ¾Æ´Ñ »õ·Î¿î installÀ» ±ÇÇÕ´Ï´Ù. ______________________________________________________________________ ¼³Ä¡³¡³ª°í Àü¿øÀ» ¿Ã·ÈÀ¸¸é ÀÌÁ¦ ¹é¾÷Çß´ø ÀڷḦ ¿Å°Ü¿Ã ÀÏÀÌ ³²¾Ò½À´Ï´Ù. ÀÌÁ¦ passwd ÆÄÀÏ°ú groupÆÄÀÏÀ» /etc·Î º¹»çÇսôÙ. À̶§ ÁÖÀÇÇÒÁ¡! ¸¸¾à shadow¸¦ ÀÛµ¿½ÃÅ°°í ÇÏ¸é ¾ÈµË´Ï´Ù. ±×¸®°í ÀÌÀü¿¡ ÀÖ´ø passwdµµ shadow°¡ µÇ¾îÀÖÁö ¾ÊÀº ÆÄÀÏ À̾î¾ß ÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é ´ç½ÅÀº ¾öû³­ ½Ç¼ö¸¦ ¹üÇÑ°ÍÀÔ´Ï´Ù. ÀÚ shadow »ç¿ëÇÒ¶§´Â pwconv shadow Á¦°ÅÇÒ´ë´Â pwunconv ÁÖÀÇÇϼ¼¿ä. ±×´ÙÀ½Àº root ¾ÏÈ£¸¦ ¹Ù²Ù½Ê½Ã¿À. passwd root ¿Ö ±×·¯³Ä±¸¿ä? ÀÌÀüÀÇ ¾ÏÈ£¸¦ ¿Å°Ü¿Ô±â ¶§¹®¿¡ ¼³Ä¡Çϸ鼭 ¸¸µç ¾ÏÈ£°¡ ¹«È¿È­µÇ±â ¶§¹®ÀÔ´Ï´Ù. ´ÙÀ½À¸·Î ÇÒÀÏÀº homeÀ» º¹»çÇÏ°í, ´ÙÀ½Àº /var/spool/mailÀ» º¹»çÇսôÙ. ÀÚ, Àß µÇ¾ú´ÂÁö homeµð·ºÅ丮¿¡ °¡¼­ ls -al À» Ãĺ¾½Ã´Ù. °¢ µð·ºÅ丮ÀÇ ±ÇÇѵéÀÌ °¢ À¯ÀúµéÀÇ ±ÇÇÑÀ¸·Î µÇ¾î ÀÖ½À´Ï±î? ¸¸¾à ±×·¸Áö ¾Ê°í root ±ÇÇÑÀ¸·Î µÇ¾îÀÖ´Ù¸é? ´ç½ÅÀº ¶ÇÇѹø Å©³ªÅ« ½Ç¼ö¸¦ ¹üÇÑ °ÍÀÔ´Ï´Ù. ¹é¾÷ÇÒ¶§ ¹é¾÷ÅøÀ» »ç¿ëÇß´Ù¸é ¹®Á¦°¡ ¾øÀ» °ÍÀÌ°í, tar¸¦ »ç¿ëÇصµ ¹®Á¦°¡ µÇÁö ¾ÊÁÒ? cp¸¦ »ç¿ëÇϸé? À̶§´Â ¿É¼ÇÀÌ ºÙ½À´Ï´Ù. °£´ÜÇÏ°Ô ÇÏ´Â ¹æ¹ý! cp -a /home /backup/ ÀÌ·¯¸é µË´Ï´Ù. ²À °èÁ¤¿¡ ´ëÇÑ ±ÇÇÑÀÌ Á¦´ë·Î »ì¾Æ ÀÖ´ÂÁö È®ÀÎÇϽʽÿÀ. ´ÙÀ½Àº ÀÇ·ÚÀÚ´Ô²²¼­ /usr/localÂÊÀÇ º¹±¸¸¦ ÀÇ·ÚÇϼÌÀ¸´Ï, ¾îµð º¾½Ã´Ù. ÀÏ´Ü static binaryÀÇ °æ¿ì´Â ±×³É Àü¿¡ ÀÖ´ø ÀÚ¸®¿¡ ³õÀ¸¼Åµµ µË´Ï´Ù. Âü, PATH°¡ ¹Ù²î¾î ÀÖ´Ù±¸¿ä? /etc/profile ÀÌ°ÍÀ» Àü¿¡ ÀÖ´ø ÆÄÀÏ°ú ºñ±³Çؼ­ ¹Ù²Ù¾î Áֽñ⠹ٶø´Ï´Ù. PATH¸¦ ¼ÕºÁÁÖ½Ã¸é µË´Ï´Ù. ÀÚ, /etcÀÇ ÆÄÀϵé°ú ÇöÀç ¼³Ä¡µÈ ÆÄÀϵéÀ» ºñ±³ÇØ°¡¸é¼­ ¹Ù²Ù¾î º¾½Ã´Ù. ´ÙÀ½Àº /etc/httpd/conf¸¦ ¼Õº¾½Ã´Ù. php¸¦ »ç¿ëÇÒ°æ¿ì ²À Ç®¾îÁÖ¾î¾ß ÇÒ ¿É¼ÇÀÌ ÀÖ½À´Ï´Ù. ______________________________________________________________________ # Extra Modules #LoadModule php_module modules/mod_php.so LoadModule php3_module modules/libphp3.so #LoadModule perl_module modules/libperl.so ±×¸®°í # Extra Modules #AddModule mod_php.c AddModule mod_php3.c #AddModule mod_perl.c ±×¸®°í AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps #AddType application/x-httpd-php .phtml ______________________________________________________________________ ÀÌ·¸°Ô »ý±ä°ÍÀÇ ¾ÕÀÇ #(ÁÖ¼®Ã³¸®)¸¦ Á¦°ÅÇϽðí /etc/rc.d/init.d/httpd restart ÇØÁÖ½Ã¸é ³¡ÀÔ´Ï´Ù. À¥ÀÌ¾ß /home/httpd/html ¿¡ ÀÖÀ¸¸é ±×³É ¾²¸é µÇ´Ï±î ¹®Á¦µÉ °ÍÀº ¾øÀ» °ÍÀÔ´Ï´Ù. Ư¼öÇÑ °æ¿ì´Â ÀÌÀüÀÇ ¼³Á¤ÆÄÀÏÀ» º¸°í ºñ±³ÇÏ½Ã¸é µË´Ï´Ù. apacheÀÇ ¼³Á¤Àº ¹öÀüÀÌ ¾÷µÇ¸é¼­ Å©°Ô ¹Ù²ïÁ¡ÀÌ ¾ø±â¶§¹®¿¡, ±×³É »ç¿ëÇϼŵµ º°¹«¸®´Â ¾øÀ» °ÍÀÔ´Ï´Ù. ´ÙÀ½Àº ¹ÙµÏÇÁ·Î±×·¥... ¿ä°Ç ¼Ò½º°¡ ¸¶Ä§ °ø°³µÇ¾î Àֱ⠶§¹®¿¡, ±×³É ÄÄÆÄÀÏ·Î ¹®Á¦¸¦ ÇØ°áÇß½À´Ï´Ù. ÀÚ ÀÌÁ¦ ³²Àº ÀÏÀº ¹»±î¿ä? º¸¾È ¼³Á¤? ¿ä°Ç ´ÙÀ½¿¡ Çϱâ·Î Çϱ¸¿ä, ±ä±Þ º¹±¸´Â ¿©±â¼­ ³¡³»°Ú½À´Ï´Ù. 3. ¿ìÀ×? ¼Ò½º? Oh, NO! ÀÏ´Ü ÄÄÆÄÀϺÎÅÍ! ¸®´ª½ºÀÇ °­Á¡Àº ¹¹´Ï¹¹´ÏÇصµ °ø°³µÈ ¼Ò½º°¡ ¾Æ´Ò±î ÇÕ´Ï´Ù. ÀÌ ºÎºÐÀº ŸÀÇ ÃßÁ¾À» ºÒÇãÇÏÁÒ. ±×¸¸Å­ ¸®´ª½º¸¦ ´Ù·ç´Â ºÎºÐ¿¡¼­ ÄÄÆÄÀÏÀº Àå³­°¨Ã³·³ ¿©°Ü¾ß ÇÕ´Ï´Ù. ÀÏ´Ü ¾î¶² º¹ÀâÇÑ ¼Ò½º¸¦ Çϳª ¿¹¸¦ µé¾î¼­ ÇÁ·Î±×·¥À» ÄÄÆÄÀÏ Çغ¾½Ã´Ù. 3.1. ¼Ò½º ±¸Çϱ⠺¸Åë SRPM³»Áö tar.gz·Î µÇ¾îÀÖ´Â °ÍÀ» ±¸ÇÏ°Ô µÇ½Ç °ÍÀÔ´Ï´Ù. ÀÚ¾Æ Àúµµ ¾î¶² ÆÄÀÏÀ» ºÙÀâ°í ¿©·¯ºÐµé°ú °°ÀÌ °¡Áö°í ³î¾Æ¾ß°ÚÁÒ? procps-2.0.2-korea_patch.tgz ÀÌ ÆÄÀÏÀº ftp://monster.uos.ac.kr/pub/misc/procps-2.0.2-korea_patch.tgz ¿¡ Áغñ½ÃÄÑ ³õ¾Ò½À´Ï´Ù. ¿ì¸®´Â ÀÌ ÆÄÀÏ¿¡¼­ topºÎºÐÀÇ ¾È³»¹®ÀÌ Çѱ۷Π³ª¿À°Ô ÇÏ´Â °ÍÀÌ ¸ñÀûÀÔ´Ï´Ù. ______________________________________________________________________ ** ÁÖÀÇ ! : ÀÌ ¼Ò½º´Â ¾ËÂ¥ 6.0 ¶Ç´Â RedHat 6.0 ¶Ç´Â ÆÄ¿ö,¾×¼¿ ¸®´ª½º¿¡¼­ ÇÏ´Â °ÍÀ» ±âº»À¸·Î ÇÕ´Ï´Ù. ¸¸¾à RedHat 5.2¶Ç´Â ¾ËÂ¥ 5.2¶ó¸é, ÀÏ´Ü procps¸¦ (À§ÀÇ ÆÄÀÏ) ¸ðµÎ ¼³Ä¡ÇϽŠ´ÙÀ½¿¡ ldconfig¸¦ ½ÇÇà½ÃÅ°½Ã°í ³­ µÚ¿¡ ½ÃÀÛÇÏ¼Å¾ß µË´Ï´Ù. ¿Ö³Ä±¸¿ä? ±×³ÉÇϸé libProc.ld¸¦ ã´À¶ó°í ³­¸®¸¦ Ä¡±â ¶§¹®ÀÔ´Ï´Ù. ______________________________________________________________________ ÀÏ´Ü ÀÌ ÆÄÀÏÀ» Àû´çÇÑ °÷¿¡ µÎ°í ¾ÐÃàÀ» DZ½Ã´Ù. tar zxvf procps-2.0.2-korea_patch.tgz ÀÚ, ´Ù Ç®¸®¼Ì½À´Ï±î? ÀÌÁ¦ procps-2.0.2 µð·¹Å丮·Î µé¾î°©½Ã´Ù. µé¾î°¡¸é top.c °¡º¸À̽ÃÁÒ? ¿ä°ÍÀÌ ¿ì¸®µéÀÇ ¸ñÇ¥ÀÔ´Ï´Ù. ±×·¯³ª... ÀÌ·¸°Ô ã¾Æ µé¾î°¡¸é ¾ÈµÅ¿ä!! Á¦ÀÏ ¸ÕÀú º¸¾Æ¾ßÇÒ ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù. README INSTALL ¾î¶² ¼Ò½ºµçÁö, ¿ä µÑÁß¿¡ ÇÑ°¡Áö´Â ²À µé¾îÀÖ½À´Ï´Ù. ¿ä±â¿¡ ¼³Ä¡¹ýÀÌ ´Ù ³ª¿Í ÀÖ½À´Ï´Ù. ¹°·Ð ¿µ¾îÀÌ°ÚÁÒ...(^^;) ¿©ÇÏÆ° ÀÌ ÆÄÀÏÀ» ¸ÕÀú º¸½Ã°í ÀÌÁ¦ top.c¸¦ º¾½Ã´Ù. ÀÏ´Ü Àú´Â 'CPU states'¸¦ 'CPU »óÅÂ'·Î ¹Ù²Ù°Ú½À´Ï´Ù. 1274¹ø° ÁÙÀÔ´Ï´Ù. ______________________________________________________________________ /* END EXPERIMENTAL CODE */ printf("CPU »óÅÂ:" " %2ld.%ld%% user, %2ld.%ld%% system," " %2ld.%ld%% nice, %2ld.%ld%% idle", ______________________________________________________________________ ÀÚ, "CPU »óÅÂ" ¶ó°í ¹Ù²Ù¼ÌÁÒ? ÀÌÁ¦ ÀúÀåÀ» ÇϽðí ÄÄÆÄÀÏÀ» ÇսôÙ. ÄÄÆÄÀÏ ÇÒ¶§´Â make¸¦ ÀûÀýÇÏ°Ô »ç¿ëÇսôÙ. make top ÀÌ·¸°Ô Çϸé top ÇÁ·Î±×·¥ºÎºÐ¸¸ ÄÄÆÄÀÏÇÏ°Ô µË´Ï´Ù. ÀÚ, ÀÌÁ¦ topÀ̶ó°í ½ÇÇà°¡´ÉÇÑ ÆÄÀÏÀÌ »ý¼ºµÇ¾úÁÒ? ¿©±â¼­ topÀ» ½ÇÇà½ÃÄÑ º¾½Ã´Ù. ______________________________________________________________________ 3:22am up 17 days, 20:35, 2 users, load average: 0.00, 0.00, 0.00 59 processes: 58 sleeping, 1 running, 0 zombie, 0 stopped CPU »óÅÂ: 0.0% user, 0.0% system, 0.0% nice, 2.4% idle ______________________________________________________________________ ¾î¶§¿ä? Çѱ۷Π³ª¿ÀÁÒ? ÀÌ·¸°Ô Á¶±Ý¾¿ ¹Ù²Ù¾î ³ª°¡¸é Àڽŵµ ¸ð¸£´Â »çÀÌ¿¡ ÇÑ±Û ÆÐÅ°Áö¸¦ ¸¸µå´Â ÆÐÅ°Àú°¡ µÉ ¼ö ÀÖ½À´Ï´Ù. ÀÌÁ¦ ´Ù¸¥ ºÎºÐµµ ¸ðµÎ ¹Ù²ãº¼±î¿ä? ______________________________________________________________________ 4:33am up 17 days, 21:46, 2 users, load average: 0.07, 0.04, 0.00 51 ÀÛ¾÷°³¼ö: 50 ÀáÆÃÀÌ°³¼ö, 1 ¶Ü¹ÚÁú°³¼ö, 0 Á»ºñ(±Í½Å), 0 ¸ØÃá°¹¼ö CPU »óÅÂ: 0.0% user, 0.7% system, 0.0% nice, 99.2% idle Mem: 95592K av, 90880K used, 4712K free, 91880K shrd, 18700K buff Swap: 96384K av, 1412K used, 94972K free 46492K cached Memory Á¤º¸ º¸¿©ÁÙ±î ¸»±î? off ______________________________________________________________________ ÀúÀÇ ÂªÀº ¿µ¾î½Ç·ÂÀ¸·Î ¹Ù²Û ¾È³»¹®µéÀÔ´Ï´Ù. ¸¸¾à ¿µ¾î¹ø¿ª¿¡ Á¶¿¹°¡ ±íÀ¸½Å ºÐµéÀº ÀÌ¿Í°°Àº Àç¹ÌÀÖ´Â ÀÏ¿¡ µ¿ÂüÇØ Áֽñ⠹ٶø´Ï´Ù. Á¦°¡ ¹Ù²Û topÀº RPMÀ¸·Î ¸¸µé¾î¼­ ftp://monster.uos.ac.kr/pub/misc/ ¾È¿¡ ³Ö¾îµÎ°Ú½À´Ï´Ù. procps-2.0.2-linux4reduck96.src.rpm ¼Ò½º ÆÐÅ°Áö ----------------------------------------------- procps-2.0.2-linux4reduck96_Alzza52.i386.rpm procps-X11-2.0.2-linux4reduck96_Alzza52.i386.rpm -----------------------------------------------¾ËÂ¥ 5.2¿ë ÀÌ·¸°Ô ÆÄÀÏÀ» µÎ°Ú½À´Ï´Ù. ¸¸¾à ¾ËÂ¥ 6.0À» »ç¿ëÇÏ½Ç °æ¿ì, rpm --rebuild procps-2.0.2-linux4reduck96.src.rpm ¶ó°í ÇϽøé /usr/src/redhat/RPMS/i386 ¿¡ ¹ØÀÇ µÎ ÆÄÀÏÀÌ »ý¼ºµË´Ï´Ù. ±×°ÍÀ¸·Î rpm -Uhv proc*.rpm ÇÏ½Ã¸é µË´Ï´Ù. ¸¹À̸¹ÀÌ ¼öÁ¤Çؼ­ ÀÚ·á½Ç¿¡ ¿Ã·ÁÁÖ¼¼¿ä ^^; 4. ¸®´ª½º¹Ú½º Çϳª·Î ´Ù¼öÀÇ À¥¼­ºñ½º¸¦? ÀÇ·ÚÀÎ : ÇìÀÌ, ³ª ¾ßÇÑ À¥Çϳª ¸¸µé°Ô ÄÄÇϳª ¸¸µé¾îÁÖ¶ó! ó¸®ÀÎ : ±×·³ µ·Áà. Àß ¸¸µé¾îÁÙ²². ÀÇ·ÚÀÎ : ¾ß, ³ª µ· º°·Î ¾ø¾î. ó¸®ÀÎ : ±×·¡? ±×·³ ¹äÇѳ¢ »çÁà¶ó. ÀÇ·ÚÀÎ : Àå³­ÇϳÄ? ó¸®ÀÎ : ¹Ý¸»À̳Ä? ÀÇ·ÚÀÎ : ÆÜ! ó¸®ÀÎ : ÆÅ! ÆÜÆÜ~~ ÆÅÆÅ!! °ú¿¬ ´©°¡ À߸øÇÏ°í ÀÖ´Â °ÍÀϱî¿ä? À¥À» Çϳª ¶ç¿ì±â À§Çؼ­ ÄÄÀ» Çϳª ¸¶·ÃÇÑ´Ù? ±×°Íµµ º°·Î Áß¿äÇÑ ÀÚ·áµµ ¾ø´Â ¾ß ÇÑ »çÀÌÆ®¸¦ À§ÇØ »õ°ÍÀ»? ó¸®ÀÎÀº ¾î¶² »ý°¢ À» °¡Áö°í ¹äÇѳ¢¿¡ ÇØ°áÇÑ´Ù°í Çê¼Ò¸®¸¦ ÇßÀ»±î¿ä? °ú¿¬ Çê¼Ò¸®Àϱî¿ä? WindogNT¸¦ ÀÌ¿ëÇؼ­ ÇÑ´Ù¸é À§ÀÇ ¹æ¹ýÀ» ¾µ·Á¸é ¹äÇѳ¢¿¡ ¾ÈµÈ´Ù´Â °ÍÀ» Àß ¾Æ½Ç °ÍÀÔ´Ï´Ù. ÇÏÇÏ! ¹ä Çѳ¢¿¡ ¸î¹é¸¸¿ø Çϳı¸¿ä? ¼³¸¶ ´Ü¶õÁÖÁ¡À̶ó°í »ý°¢ÇϽŠµ¶ÀÚ°¡ °è½Å´Ù¸é ±×°Ç Å« ¿À»êÀÔ´Ï´Ù. ¸®´ª¼­°¡ ¹«½¼ µ·ÀÌ ÀÖ´Ù°í ´Ü¶õÁÖÁ¡¿¡ °©´Ï±î? ¶ó¸é Çϳª¸é ³¡³ª´Âµ¥... Linux¿¡¼­´Â °øÂ¥·Î ÇÑ´ëÀÇ Çϵå¿þ¾î¿¡¼­ º¹¼öÀÇ À¥¼­Æ÷ÆÃÀ» ÇÒ ¼ö ÀÖ´Â ±â´ÉÀÌ ±âº»À¸·Î µé¾î°¡ ÀÖ½À´Ï´Ù. »ç¿ëµÉ Application 1. Linux (´ç¿¬ÇÏ°ÚÁÒ?) 2. Apache (±âº»À¸·Î µé¾î°¡ÀÖ°ÚÁÒ?) ÀÌ¹Ì ¿©·¯ºÐµéÀº ÇÒ ¼ö ÀÖ´Â µµ±¸¸¦ ´Ù °¡Áö°í ÀÖ½À´Ï´Ù. ´Ù¸¸ »ç¿ëÀ» ¾ÈÇؼ­ ±×·¸ÁÒ. Linux¿¡¼­ IP Alias±â´ÉÀ» »ç¿ëÇÏ¿© ÇÑ°³ÀÇ machineÀÌ º¹¼öÀÇ IP¸¦ °¡Áöµµ·Ï ÇսôÙ. ¾ËÂ¥ ¶Ç´Â RedHat Linux¿¡¼­´Â IP Alias±â´ÉÀÌ Ä¿³Î ´ÜÀ§¿¡¼­ ¼±ÅõǾîÁ® Àֱ⠶§¹®¿¡ Ä¿³ÎÀ» ´Ù½Ã ÄÄÆÄÀÏ ÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ÇÏ°í ½ÍÀ¸½Ã´Ù±¸¿©? ±×·³ ÇϽʽÿä. Àúº¸°í Ç϶󱸿ä? Á» ±â´Ù¸®¼¼¿ä. ¾ÆÁ÷µµ Á¤¸®ÁßÀÌ¿¡¿ä... ´Ù Á¤¸®ÇÑ´ÙÀ½, Åë½Å¸Á °­Á¶õ¿¡ ¿Ã¸±²²¿ä. ¿©ÇÏÆ° Áö±ÝÀº Áß¿äÇÑ°ÍÀÌ ÀÌ°ÍÀÌ ¾Æ´ÏÁÒ... ÀÏ´Ü Alias¸¦ »ç¿ëÇØ º¾½Ã´Ù. ¿©·¯ºÐµéÀÌ ¸¸¾à X-Window»óŶó¸é ´ÙÀ½ÀÇ ÅøÀ» ¶ç¿öÁֽñ⠹ٶø´Ï´Ù. netcfg ÀÌ°Å ¸»°íµµ ¿©·¯ °¡Áö ÅøµéÀÌ ÀÖÁö¸¸, Àú´Â ÀÌ°ÍÀ¸·Î ÇÏ°Ú½À´Ï´Ù. ÀÚ, ³×¸ð³­ »óÀÚ¿¡ ¸Þ´º°¡ ¸î°³ ¶ßÁÒ? ¾ÆÇÏ ÀÚ½ÅÀÇ ÄÄÇ»ÅÍÀÇ ³×Æ®¿öÅ© ¼³Á¤À» ÇÏ´Â ÅøŶÀ̳׿ä. ÀÚ¼¼È÷ º¸½Ã¸é ¿©·¯ºÐµéÀÌ ¼öÁ¤ÇÒ ¼ö ÀÖ´Â ºÎºÐÀÌ ¸î°¡Áö ÀÖÀ»°ÍÀÔ´Ï´Ù. ¼öÁ¤ÇÏ°í ½ÍÀ¸½Å ºÐÀº Áö±Ý ¹Ù²Ù½Ã°í 'Save'Å°¸¦ ´­·¯Áֽñ⠹ٶø´Ï´Ù. ÀÌÁ¦ ¹Ú½ºÀÇ À­ºÎºÐÀ» Àß º¾½Ã´Ù. 'Interfaces'¶ó´Â Å°°¡ ÀÖÁö¿ä? ´©¸£½Ê½Ã¿À. ±×·¯¸é ¹ØÀÇ Å°¿¡ 'Alias'°¡ º¸ÀÏ °ÍÀÔ´Ï´Ù. ÀÚ¾Æ ÀÏ´Ü alias¸¦ È°¼ºÈ­½Ãų ³×Æ®¿öÅ© Ä«µå¸¦ ¼±ÅÃÇսôÙ. ¿©·¯ºÐÀÇ ÄÄÇ»ÅÍ°¡ Ư¼öÇÑ ¸ñÀû¿¡ »ç¿ëµÇÁö ¾Ê´ÂÇÑ, eth0 ¸¸ÀÌ ¿©·¯ºÐÀ» ¹Ý±æ°ÍÀÔ´Ï´Ù. 'lo'´Â ¹ºµ¥ Ãë±Þµµ ¾ÈÇϳı¸¿ä? ±×°ÍÀº ÀÚ±â ÀÚ½ÅÀ» ¶æÇÕ´Ï´Ù. ¹¹, ÀØÀ¸¼Åµµ »ó°ü¾ø½À´Ï´Ù. ÀÏ´Ü 'eth0'¸¦ ¼±ÅÃÇϽŠÈÄ, 'Alias'Å°¸¦ ´©¸¨½Ã´Ù. ±×·¯¸é ¸Þ´º°¡ Çϳª ´õ¶ßÁÒ? º¸¸é »· ÇÏÁÒ? ¹Ù·Î IP¸¦ ³Ö¾î´Þ¶ó´Â °ÍÀÔ´Ï´Ù. C- Class±îÁö´Â ¸ÕÀú Â÷ÁöÇÑ°Í°ú °°¾Æ¾ß ÇÕ´Ï´Ù¸¸, d-class¸¦ ¹Ù²ÞÀ¸·Î¼­ ÀÌ machineÀº º¹¼öÀÇ IP¸¦ °¡Áö°Ô µÇ´Â °ÍÀÔ´Ï´Ù. c,d-class°¡ ¹¹³Ä±¸¿ä? ÇÑ°¡Áö ¿¹¸¦ µé°Ú½À´Ï´Ù. IP : 203.249.231.199 ¿ä·± IP°¡ ÀÖ´Ù°í ÇսôÙ. 203ºÎºÐ : A-Class 249ºÎºÐ : B-Class 231ºÎºÐ : C-Class 199ºÎºÐ : D-Class Áï, A.B.C.D ¶ó°í »ý°¢ÇÏ½Ã¸é µË´Ï´Ù. °£´ÜÇÏÁÒ? ÀÚ, ÀÌÁ¦ 'Done'À» ¼±ÅÃÇϽðí Save¸¦ ÇϽðí, Active½ÃÅ°¸é ±×¶§ºÎÅÍ ¿©·¯ºÐÀÌ ÀÔ·ÂÇÑ ÁÖ¼Ò°¡ È°¼ºÈ­µË´Ï´Ù. ÀÚ, ÀÌÁ¦ À¥¼­¹ö¿¡¼­ ¼³Á¤ÇÏ´Â °Í¸¸ ³²¾Ò³×¿ä. ______________________________________________________________________ ** ÁÖÀÇ ** ¿©±â¼­´Â ÇÑ°¡Áö »óȲÀ» ¼³Á¤ÇØ ³õ°í À̾߱⸦ À̲ø¾î°¡°Ú½À´Ï´Ù. AliasÇÑ IP : 203.249.231.199 URL : nuclear_bumb.babo.net ÀÌ ¼­¹öÀÇ ¿ø·¡ URL°ú IP IP : 203.249.231.50 URL : mungchungi.babo.net ______________________________________________________________________ ÀÚ¾Æ /etc/httpd/conf ¿¡ ³î·¯°¡º¼±î¿ä? ¾ËÂ¥¸¦ »ç¿ëÇϽŴٸé, À̸¸¿ë¾¾²²¼­ ÇѲ¨¹ø¿¡ ¹¶Ãijõ°í Çѱ۷Π¼³¸íÇسõÀº ¼³Á¤µéÀ» º¼ ¼ö ÀÖÀ» °ÍÀÔ´Ï´Ù. ¿ì¸®´Â, ¿©±â¼­ Á¦ÀÏ ¸Ç ³¡À¸·Î °¡¾ß ÇÕ´Ï´Ù. ______________________________________________________________________ # # °¡»ó È£½ºÆ® ¿¹Á¦: # °ÅÀÇ ¸ðµç ¾ÆÆÄÄ¡ Áö½ÃÀÚ°¡ VirtualHost ÄÁÅ×À̳ʿ¡ ¿Ã ¼ö ÀÖ´Ù. # # # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common # ______________________________________________________________________ ¿ìÀ×? ôº¸¸é Ź ¾Ë¾Æ¾ß Çϴµ¥... ¹º°¡ Àǹ̰¡ ÀÖÁö¿ä? ÀÚ, ¾ÕÀÇ #¸¦ »©°í ÇϳªÇϳª ¼³Á¤ÇØ º¾½Ã´Ù. ______________________________________________________________________ ServerAdmin nuclear@nuclear_bumb.babo.net DocumentRoot /home/nuclear/web_start ServerName nuclear_bumb.babo.net ErrorLog logs/nuclear_bumb.babo.net-error_log CustomLog logs/nuclear_bumb.babo.net-access_log common ______________________________________________________________________ ¿ìÀ×? °©Àڱ⠽¬¿öÁø´Ù´Â ´À³¦ÀÌ µéÁÒ? ÀÌ·¸°Ô º¹¼öÀÇ °ÍÀ» ¸¸µé¸é ³¡! ¾Æ, httpd ¸®½ºÅ¸Æ®(/etc/rc.d/init.d/httpd restart) ÇÑ´Ù´Â°Í ÀØÁö ¸¶¼¼¿ä. ÀÚ¾Æ, ÀÌÁ¦ ¾ò¾îÅÍÁø ÀÇ·ÚÀÚ´Â /home/nuclear/web_start¿¡ À¥¼Ò½º¸¦ ³Ö±â¸¸ ÇÏ¸é ³¡ÀÔ´Ï´Ù. ¾ò¾îÅÍÁ®µµ ½ÎÁÒ? 5. tcpwraper´Â ½Ãü°¡ ¾Æ´Ï´Ù! tcp_wraper... ¿ä°Å »ç¿ëÇÏ´Â »ç¶÷ º°·Î ¾øÀ»°ÍÀ̶ó »ý°¢µË´Ï´Ù. ¿ä°ÍÀÌ ¹«¾ùÀ̳Ä! ¹Ù·Î °ü¸®ÀÚ°¡ ¼±ÅÃÀûÀ¸·Î Á¢¼ÓÇϴ ȣ½ºÆ®¸¦ ¸·´Â ÅøÀÌ´Ù ÀÌ°Ì´Ï´Ù. ÀÚ, ÇÊ¿äÇÑ ÆÄÀϵéÀ» º¼±î¿ä? /etc/hosts.allow /etc/hosts.deny ±×¸®°í ¼­ºñ½º·Î Çϳª ¸¸µé °ÍÀÌ ÀÖÁÒ. ÆÄÀÏÀ̸§Àº host_check·Î ÇÒ²²¿ä. ______________________________________________________________________ #!/bin/sh ################################ º¯¼öÁ¤ÀǺι® # ¸ÞÀÏ ¼ö½ÅÀÚ mailto=reduck96 # È­¸éÃâ·Â ¿©ºÎ, ¸ÞÀÏÀü¼Û ¿©ºÎ dsp=$1; msg=$2 # Á¢¼ÓÀÚ Á¤º¸ µî a=$3; c=$4; d=$5; h=$6; n=$7; p=$8; s=$9; u=$10 # ÇöÀç ½Ã°£ time=`date` # Á¢¼Ó½ÃµµÀÚ ¼Ò¼Ó ¼­¹öÀÇ finger Á¤º¸ finger=`/usr/bin/finger -l @$h 2> /dev/null` ################################ È­¸é Ãâ·ÂºÎ¹® if [ $dsp = Y ] then /bin/echo " ===================================\n\ Á¢¼ÓÀÌ Çã¿ëµÇÁö ¾Ê½À´Ï´Ù. \n\ ===================================\n\ \n\ Access Time : $time\n\ Client host address : $a\n\ Client information : $c\n\ Client host name(or IP) : $h\n\ Client host name : $n\n\ Client user name : $u\n\n " fi ################################ ¸ÞÀÏ ¼Û½ÅºÎ¹® if [ $msg = Y ] then /bin/echo " ===============================\n\ Á¢¼Ó °ÅºÎÀÚ »ó¼¼Á¤º¸ \n\ ===============================\n\ \n\ Access Time : $time\n\ Access client host address : $a\n\ Access client information : $c\n\ The daemon process name : $d\n\ Access client host name(or IP) : $h\n\ Access client host name : $n\n\ The daemon process id : $p\n\ Server information : $s\n\ Access client user name : $u\n\ \n\ --------------------------------------------------------\n\ Access client finger information \n\ --------------------------------------------------------\n\ $finger\n\ ---------------------------------------------------------\n\ \n\n" | \ /bin/mail -s "tcp_wrapper report [$d]" $mailto fi ______________________________________________________________________ ÀÌ·¸°Ô host_check ÆÄÀÏÀ» ¸¸µçµÚ, /etc/¿¡ ³Ö¾îµÓ½Ã´Ù. Âü, ÀÌ°Å ÀØÁö ¸¶¼¼¿ä. chmod a+rx /etc/host_check ¿ä·¸°Ô ½ÇÇàÇÒ ¼ö ÀÖ°Ô ¸¸µé¾î ³õ¾Æ¾ß µÇ¿ä. ÀÚ¾Æ, ÀÌÁ¦ ³ª¸ÓÁö hosts.allow¿Í hosts.deny¸¦ Àۻ쳻º¾½Ã´Ù. hosts.allowÀÇ ³»¿ëÀÔ´Ï´Ù. ______________________________________________________________________ # # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # in.telnetd : \ 127.0.0.1 \ 203.249.111. \ 133.207. \ 203.249.107.174 \ nec.co.jp \ : rfc931: ALLOW ______________________________________________________________________ ±×¸®°í, hosts.denyÀÇ ³»¿ëÀÔ´Ï´Ù. ______________________________________________________________________ # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # # The portmap line is redundant, but it is left to remind you that # the new secure portmap uses hosts.deny and hosts.allow. In particular # you should know that NFS uses portmap! ALL : ALL EXCEPT LOCAL :\ twist ( /etc/host_check Y Y %a %c %d %h %n %p %s %u ) & ______________________________________________________________________ ´ëÃæ º¸½Ã¸é ¾Æ½Ã°ÚÁÒ? hosts.allow¿¡´Â Çã¿ëÇÒ ÄÄÀÇ ip³»Áö domainÀ» ¾²¸é µË´Ï´Ù. ±×¸®°í hosts.deny´Â ¼öÁ¤ÇÒ °ÍÀÌ °ÅÀÇ ¾ø½À´Ï´Ù. ´Ü, ¸ÞÀϹ޴ »ç¶÷ÀÇ ID´Â ¹Ù²Ù¾î ÁÖ¼Å¾ß °ÚÁÒ? reduck96 ºÎºÐÀÔ´Ï´Ù. ÀÌ°ÍÀÌ ¿ì° ÀÛµ¿À» ÇÏ´À³Ä ±Ã±ÝÇϽÃÁÒ? ÀÏ´Ü Çã¿ëµÇÁö ¾Ê´Â°÷ÀÇ IP¿¡¼­ telnetÀ¸·Î Á¢¼ÓÀ» ½ÃµµÇÕ´Ï´Ù. ±×·¯¸é ¹Ù·Î host_check°¡ µ¹ÁÒ. ±×¸®°í Á¢¼ÓÀ» ½ÃµµÇÑ ÄÄ¿¡°Ô finger¸¦ ½ÃµµÇؼ­ Á¤º¸¸¦ ¸ÞÀÏ·Î °ü¸®ÀÚ¿¡°Ô º¸³À´Ï´Ù. ¹°·Ð host_check¸¦ Ư¼öÇÑ ÇÁ·Î±×·¥À¸·Î ¹Ù²Ù¾î ÇÑ´Ù¸é ¹«Áö¹«Áö Àç¹ÌÀÖ°ÚÁÒ? ¿¹¸¦ µé¾î Tear_DropÀ̶óµçÁö, PING_DUMP°°Àº ¾ÆÁÖ ¼ºÁú ³ª»Û °ÍÀ¸·Î¿ä. ¿ä·± °Å ¾îµð¼­ ±¸Çϳı¸¿ä? ÈåÈåÈå ÀÌ°÷¿¡ Çѹø °¡º¸¼¼¿ä. Àç¹ÌÀÖ´Â ÅøµéÀÌ ¸¹½À´Ï´Ù. ÀÚ, ¼¼ºÎ ¼³Á¤Àº ¿©·¯ºÐµé¿¡°Ô ¼÷Á¦·Î ³²±â°Ú½À´Ï´Ù. Àß ¼³Á¤Çؼ­ »ç¿ëÇϽñ⸦... Âü, telnet¸»°íµµ ´Ù¸¥°Íµµ ¸·°í½Í´Ù±¸¿ä? ±×·³ ¿¹Á¦¸¦ ´õ ³Ö¾îµå¸±²²¿ä. ______________________________________________________________________ portmap rpc.nfsd rpc.mountd: \ 127.0.0.1 \ 203.249.111. \ : ALLOW in.fingerd in.cfingerd : rfc931:DENY in.timed ipop3d: ALL@ALL: rfc931: DENY in.ntalkd in.talkd: ALL: rfc931: ALLOW in.ftpd: ALL@ALL: rfc931: ALLOW ______________________________________________________________________ ÀÌÁ¤µµ¸é µÇ°ÚÁÒ? °£´ÜÇÏÁÒ? »ç¿ëÇÒ ´ë¸óÇÁ·Î±×·¥ÀÇ À̸§À» ¾Õ¿¡ ½áÁÖ°í Çü½ÄÀº °°À¸´Ï º¯ÇüÇؼ­ »ç¿ëÇÏ½Ã¸é µË´Ï´Ù. ¿ä·¸°Ô Çؼ­ °É¸° IPµéÀ» Á¶»çÇغ¸¸é, ´ëºÎºÐ sscanÀ¸·Î ÈÖÁý¾î ±ñ´Ù´Â °ÍÀ» ¾Æ½Ç ¼ö ÀÖÀ» °ÍÀÔ´Ï´Ù. Á¶½ÉÇϼ¼¿ä. Àú¿¡°Ô sscan°É¸®¸é Àü ¹Ù·Î Vs ¸ðµå(º¸º¹¸ðµå)·Î µ¹º¯Çϴϱî¿ä. 6. Service : Hardware µÉ¶§±îÁö ¹Ù²Ù¾î¶ó! ÀÌÁ¦ ¸¶Áö¸·À¸·Î hardware¿¡ ´ëÇØ ³íÇÏ°Ú½À´Ï´Ù. »ç½Ç 4³âÀü¸¸ Çصµ linux´Â Çϵå¿þ¾îÀÇ Æ¯¼ºÀ» ¾öû Àß Å¿¾ú½À´Ï´Ù. ±×·¯³ª ÆæƼ¾öÀÌ ³ª¿À¸é¼­ ¿Ø¸¸Å­ Ư¼ºÀ» Ÿ´Â Çϵå¿þ¾î°¡ ÁÙ¾îµé±â ½ÃÀÛÇßÁÒ. ±×·¯³ª ÇÑ°¡Áö º¯ÇÏÁö ¾Ê´Â°ÍÀÌ ÀÖ½À´Ï´Ù. "±¹»ê Çϵå¿þ¾î´Â Àß ¾ÈµÈ´Ù... XX´ë±â¾÷ ȸ»ç Á¦Ç°Àº ¸®´ª½º ±ò¸é ¾È±ò¸°´Ù µîµî.." ±×·¯³ª ½Ã´ë°¡ Èê·¯°¡¸é¼­ ÀÌ·¯ÇÑ ¼Ò¹®µµ Á¡Â÷ ÁÙ¾îµé±â ½ÃÀÛÇßÁÒ. ÀÚ ¼Ò¹®À̾߱â´Â ±×¸¸ÇÏ°í, Çϵå¿þ¾î À̾߱⸦ ÇսôÙ. 6.1. PNPÀÇ °æ¿ì Àß»ý±â´Â Çö»ó PNP...Plug and Pray...(ÀåÂøÇÏ°í ±âµµÇ϶ó) ³Ê¹«³Ê¹« ±«·ÓÈ÷´Â Çϵå¿þ¾îÀÔ´Ï´Ù. ¹°·Ð ¿ä³ðÀ» ²ø¼ö ÀÖÀ¸¸é ÁÁÀ¸·Ã¸¸... Linux¿Í Windows¸¦ »ç¿ëÇϽô ºÐµéÀ̽öó¸é ¿ä PNP¶§¹®¿¡ °í»ýÇÏ´Â ºÐµéÀÌ ²Ï °è½Ç°ÍÀÔ´Ï´Ù. ±Þ±â¾ß Çϵå¿þ¾î¸¦ ±³Ã¼±îÁö ÇÏ´øÁö, ¾Æ´Ï¸é linux¸¦ Æ÷±âÇÏ°Ô µÇÁÒ. ÀÌÁß, ¿©·¯»ç¶÷µé¿¡°Ô Áú¹®À» ¹Þ°Ô µÇ´Âµ¥, ´Ù ±×·±°ÍÀº ¾Æ´Ï°í ¾ÆÁÖ °£´ÜÇÑ ÀÛ¾÷À» Çϸé ÀÌ ¹®Á¦´Â ÇØ°áµË´Ï´Ù. ¹Ù·Î ¸®´ª½º¸¦ ±ò°í³ª´Ï Çϵå¿þ¾î, ƯÈ÷ »ç¿îµåÄ«µå¿Í ·£Ä«µå°¡ ¸ÔÅëÀÌ µÇ´Â Çö»óÀÌÁÒ. ¾î¿¶§´Â ÀÛµ¿µÇ°í, ¾î¿¶§´Â ¾ÈµÇ°í... ÀÌ°ÍÀº ¹Ù·Î OS°¡ PNP¸¦ ´©°¡ ¸ÕÀú ¼±Á¡ÇÏ´À³Ä¿¡ µû¶ó º¯ÇÏ´Â ±«Çö»óÀÔ´Ï´Ù. ÇØ°áÃ¥Àº ÀÇ¿Ü·Î °£´ÜÇÕ´Ï´Ù. ¸®ºÎÆÃ, Áï ¿úºÎÆÃ(Ctrl+Alt+Del)À¸·Î´Â Àý¶§ ²¨¼­´Â ¾ÈµË´Ï´Ù. ±×¸®°í Windog¿¡¼­ ´Ù½Ã ½ÃÀÛÀ¸·Î Çصµ ¾ÈµË´Ï´Ù. Àü¿øÀ» ¿ÏÀüÈ÷ ³»·Á¼­ ¾î¶² OSµµ PNP¸¦ ¼±Á¡ÇÏÁö ¸øÇÏ°Ô ÇØ¾ß ÇÕ´Ï´Ù. ±×¸®°í³ª¼­ linux³ª windog¸¦ ¼±ÅÃÇØÁÖ½Ã¸é ¹®Á¦°¡ ÇØ°áµË´Ï´Ù. 6.2. isapnp¸¦ ÀÌ¿ëÇÏ¿© Àâ°í½Í¾î¿ä isapnp¸¦ ÀÌ¿ëÇÏ¿© Çϵå¿þ¾î¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù. »ç¿ë¹æ¹ýÀº ´ÙÀ½°ú °°½À´Ï´Ù. pnpdump > /etc/isapnp.conf ÆíÁý±â·Î /etc/isapnp.conf ³»¿ëÀ» º»´Ù. »ç½Ç ÀÌ ºÎºÐÀ» º¸½Ã¸é, ¿µ¾îÀ̱â´Â ÇÏÁö¸¸ ¾È³»¹®ÀÌ ³ª¿É´Ï´Ù. Á¦°¡ ½Ã°£ÀÌ ³ª¸é isapnp toolÀ» ¿µ¾î·Î ¹ø¿ªÇÏ¿© ÆÐÅ°Áö·Î ¿Ã·Á³õ°Ú½À´Ï´Ù. Èì... ÀÏ´Ü ´ëÃæ º¸½Ã¸é ¾Æ½Ç°ÍÀÔ´Ï´Ù. IRQ¿Í IO, DMA¸¦ ¼±ÅÃÇÏ´Â °ÍÀÌÁö¿ä. ¾ÕÀÇ #¸¦ ¼±ÅÃÇؼ­ Á¦°ÅÇØ ÁÖ½Ã¸é ³¡ÀÔ´Ï´Ù. ±×¸®°í ÇÑ°¡Áö... ²À "Y"¸¦ Áö¿ö´Þ¶ó´Â ¸»ÀÌ ÀÖÁÒ? ¿ä°ÍÀ» ²À ÇØÁֽñ⠹ٶø´Ï´Ù. ÀÌ·¸°Ô Çؼ­ ÀúÀåÀ» ÇÏ°í ³ª¿Í¼­ ´ÙÀ½À» ½ÇÇà½ÃÄÑ ÁÖ¼¼¿ä. isapnp /etc/isapnp.conf ±×·¯¸é Áغñ ³¡! ¸¸¾à ¿¡·¯°¡ ³ª¿À¸é ´Ù½Ã ¼³Á¤ÇØ ÁÖ¼¼¿ä. ÀÌ°ÍÀº ¸¹Àº °æÇèÀÌ ¿ä±¸µË´Ï´Ù. ±×¸®°í ³ª¼­ moduleÀ» ¿Ã·Á¾ß ÇÑ´Ù¸é ¸ðµâÀ» ¿Ã·ÁÁÖ½Ã¸é ¹®Á¦ ³¡ÀÔ´Ï´Ù. ÀÚ, ¿Ø¸¸Å­ ÇØ°áµÇ¾ú½À´Ï±î? 6.3. Çϵå¿þ¾î°¡ windog¿¡¼­µµ Àß ¾ÈÀâÇô¿ä. ¿ä°Ç ¿©·¯°¡Áö ¿øÀÎÀÌ ÀÖÀ»¼ö ÀÖ°ÚÀ¸³ª, °¡Àå ¸¹Àº °æ¿ì´Â pciÀÇ irq°¡ ¾ûÄѼ­ »ý±â´Â ¹®Á¦°¡ ¸¹½À´Ï´Ù. ¿ä°Ç linux¿¡¼­µµ »ý±é´Ï´Ù. ÇØ°á¹æ¹ýÀº ¿©·¯ °¡Áö°¡ ÀÖ½À´Ï´Ù. --> PCIÄ«µå¸¦ ÀüºÎ »Ì¾Æ¼­ ¼ø¼­¸¦ ¹Ù²Ù¾î¼­ ´Ù½Ã ÀåÂøÇÑ´Ù. --> BIOS¿¡¼­ PCIºÎºÐÀÇ Á¤º¸¸¦ resetÇÑ´Ù. --> º¸µåÀÇ °ÇÀüÁö¸¦ Á¦°ÅÇß´Ù°¡ ´Ù½Ã ºÙÀδÙ. --> º¸µå ±¸ÀÔó¿¡°¡¼­ º¸µå¸¦ ¹Ù²Ù¾î ´Þ¶ó°í ÇÑ´Ù. ±âŸ µîµî... ¿©·¯ °¡Áö°¡ ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù¸¸, °¡Àå ¼Õ½¬¿î ¹æ¹ýÀº ¿ª½Ã PCIÄ«µåÀÇ ²Å´Â À§Ä¡¸¦ ¹Ù²Ù´Â °ÍÀÔ´Ï´Ù. ±×¸®°í ³ª¼­ ´Ù½Ã BIOS¿¡ µé¾î°¡ ¼³Á¤ÇØÁÖ°í windog³ª linux·Î °¡º¸¼¼¿ä. Àß µÇ´Â °æ¿ì°¡ ¾öû ¸¹¾Ò½À´Ï´Ù. 6.4. moduleÀ» ¿Ã¸®°í ½Í¾î¿ä. ¾î¶»°Ô ÇØ¿ä? ¿ì¿Í¾Ç! ÀÌ°Ç X-Window¿¡¼­ ÇÏ´Â °ÍÀÌ »ç½Ç ÆíÇÏ´ä´Ï´Ù. kernelcfg¶ó´Â ÇÁ·Î±×·¥ÀÌ ÀÖ½À´Ï´Ù. ÀÌ°ÍÀ¸·Î ´ëÃæ ´«ÁüÀÛÀ¸·Î Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª »ó¼¼ÇÑ Á¤º¸¸¦ ¿øÇϽŴٸé... ÀÏ´ÜÀº /usr/src/linux/Documentation¿¡ °¡º¸¼¼¿ä. ÀÚ½ÅÀÇ Çϵå¿þ¾î¸¦ Ä¿³ÎÀÌ Áö¿øÇÏ´ÂÁö ÀÏ´Ü ¾Ë¾ÆºÁ¾ß°ÚÁÒ? ¸¸¾à ÀÖ´Ù¸é? ±×·³ ¼³Ä¡ÇؾßÁÒ! ¾ËÂ¥ÀÇ °æ¿ì ´ëºÎºÐÀÇ Çϵå¿þ¾î¸¦ ¸ðµâ·Î ¸¸µé¾î ³õ¾Ò±â¶§¹®¿¡ ´Ù½Ã ÄÄÆÄÀÏÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. ÀÚ, ´ÙÀ½ÀÇ ¸í·ÉÀ» ÀÍÈü½Ã´Ù. insmod : moduleÀ» installÇÑ´Ù. rmmod : moduleÀ» removeÇÑ´Ù. modprobe : moduleÀ» probe ÇÑ´Ù. lsmod : ÇöÀç installµÇ¾î ÀÖ´Â modules¸¦ º¸¿©ÁØ´Ù. moduleÀº /lib/modules/2.2.xx/¿¡ ÀÖ½À´Ï´Ù. 2.2.xx´Â ÀÚ½ÅÀÇ Ä¿³Î ¹öÁ¯°ú °°À¸¸ç, ÀÌ º¹¼ö°³°¡ ÀÖ´Ù¸é ÇöÀç ¼³Ä¡µÇ¾î ÀÖ´Â Ä¿³ÎÀÌ ¹«¾ùÀÎÁö ¼ö´Ü°ú ¹æ¹ýÀ» °¡¸®Áö ¸»°í ¾Ë¾Æ³»¾ß ÇÕ´Ï´Ù. ÀÚ½ÅÀÇ ·£Ä«µå°¡ 3c509¶ó¸é... /lib/modules/2.2.xx/net/3c509.o °¡ ¼³Ä¡ÇÒ ¸ðµâ À̳׿ä. insmod /lib/modules/2.2.xx/net/3c509 °£´ÜÇÏÁÒ? ¸¸¾à irq³ª io¸¦ ¿É¼ÇÀ¸·Î ºÙ¿©¾ß ÇÑ´Ù¸é? ne2000ȣȯÀ϶§ ±×·± °æ¿ì°¡ ¸¹ÁÒ. À̶§´Â /etc/conf.modules¶ó´Â ÆÄÀÏÀ» ¸¸µì½Ã´Ù. ±×¸®°í ´ÙÀ½ÀÇ ³»¿ëÀ» ³ÖÀ¾½Ã´Ù. ==> ÀÚ½ÅÀÇ ne2000Ä«µåÀÇ IRQ°¡ 5¹øÀÌ°í, IO°¡ 300¹øÀ϶§... ______________________________________________________________________ alias eth0 ne options ne io=0x300 irq=5 ______________________________________________________________________ ÀÌ·¸°Ô ÀúÀåÇϽðí modprobe ne ¶ó°í ÇÏ½Ã¸é ¹®Á¦ ³¡! ½±ÁÒ? ¸¹Àº °æÇèµéÀ» ±Û·Î Ç¥ÇöÇϱâ¶õ Á¤¸» ½±Áö ¾Ê±º¿ä. ÀÏ¹Ý ¼­Á¡¿¡¼­ »ì ¼ö ÀÖ´Â µüµüÇÑ ±³º»À¸·Î ¹é³¯Çصµ ¾ÈµÇ´Â °æ¿ì°¡ ¸¹Áö¿ä? ÀÌ·¸°Ô °æÇèÀ» ºÎÁ·ÇÏÁö¸¸ ±Û·Î ¾µ ¼ö ÀÖ°Ô ±âȸ¸¦ ÁØ ¿©·¯ºÐµé²² ÀÌ ±ÛÀ» µå¸³´Ï´Ù.