1596, 1/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   challker
   ¡Ú¡Ú¡Ú[À¯´Ð½º ¼­¹ö¿ë CVS ±¸Ãà±â]¡Ú¡Ú¡Ú

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=591 [º¹»ç]


¢Â CVS INSTALL GUIDE ¢Â

¥°. INSTALL PROCEDURE(root °èÁ¤À¸·Î Install)

  ¡à Install
¡Ø install fileÀ» cvs_ins¶ó°í °¡Á¤ÇÔ.
   workdirectory´Â install fileÀ» ³Ö°í ¼³Ä¡ÇÒ Àӽà µð·ºÅ丮ÀÓ.
   installÀº root·Î ÇÏÁö¸¸, ÀÌÁ¦ºÎÅÍ ³ª¿À´Â system°èÁ¤¸íÀº ½ÇÁ¦ »ç¿ëÇÏ´Â system°èÁ¤¸íÀÓÀ»
   À¯ÀÇÇÒ °Í. ex) loginÀ» tester·Î ÇßÀ¸¸é system°èÁ¤¸í¿¡ tester¸¦ »ç¿ëÇÔ.

   1) /workdirectory/cvs_ins ·Î À̵¿ ÈÄ ¾Æ·¡ ¼ø¼­´ë·Î ¼³Ä¡
   2) cvs_ins# ./configure [enter]
   3) cvs_ins# make [enter]
   4) cvs_ins# make install [enter]
   5) # cvs -v  [enter] ¡æ ¼³Ä¡¿©ºÎ ¹× ¹öÀü È®ÀÎ

  ¡à repository(ÀúÀå¼Ò) »ý¼º
¡Ø cvshomedirectory´Â cvs°¡ ½ÇÁ¦ÀûÀ¸·Î »ç¿ëµÉ µð·ºÅ丮ÀÓ.
   4), 5)¹øÀº optional ·Î ÃßÈÄ »ç¿ë½Ã ¹®Á¦°¡ ÀÖÀ¸¸é Çѹø ½ÃµµÇØ º¼ ³»¿ë. óÀ½¿¡ Çصµ °ü°è¾øÀ½

   1) # mkdir /cvshomedirectory/cvs [enter]  ¡æ cvs ¶ó´Â µð·ºÅ丮 »ý¼º
   2) # cvs -d /cvshomedirectory/cvs init [enter] ¡æ cvs µð·ºÅ丮¸¦ ÀúÀå¼Ò·Î ¼³Á¤
   3) # groupadd cvs [enter] ¡æ cvs group µî·Ï
   4) # chgrp -R cvs /cvshomedirectory/cvs [enter] ¡æ cvs ÀúÀå¼Ò¿¡ cvs group ÁöÁ¤
   5) # chmod ug+rwx /cvshomedirectory/cvs /cvshomedirectory/cvs/CVSROOT [enter]
      ¡æ ±ÇÇÑ ¼³Á¤

¥±. ENVIRONMENTAL CONFIGURATION

¡à cvspserver ȯ°æ¼³Á¤
¡Ø ¾Æ·¡ servicesÀÇ À§Ä¡´Â ´Ù¸¦ ¼ö ÀÖÀ¸´Ï ã¾Æº¼°Í.
   2)ÀÇ unix À§Ä¡´Â /etc/inet.d/inetd.conf ÀÏ °ÍÀ¸·Î ÃßÁ¤µÊ.

   1) /etc/services ÆÄÀÏ ¸Ç ¹ØÁÙ¿¡ ¾Æ·¡ ³»¿ëÃß°¡
      - cvspserver 2401/tcp  # CVS Server Port
   2) /etc/inetd.conf ÆÄÀÏ ¸Ç ¹ØÁÙ¿¡ ¾Æ·¡ ³»¿ëÃß°¡
      - cvspserver stream tcp nowait root /usr/bin/cvs -f --allow-root=/cvshomedirectory/cvs pserver  

    ¡Ø 3)ÀÇ °æ·ÎÁß /usr/bin/cvs´Â ´Ù¸¥ °÷¿¡ ½ÇÇà ÆÄÀÏÀÌ ÀÖÀ» °æ¿ì ã¾Æº¼°Í. ½ÇÇàÆÄÀÏÀº      
       .bash_profile¿¡¼­ PATH¸¦ Âü°íÇÏ¸é µÊ.

   3) inetd Àç½ÃÀÛ
     - # kill -HUP <inetd pid> [enter]

    ¡Ø ȯ°æ¼³Á¤ ÀÌÈÄ¿¡´Â Ç×»ó Àç·Î±×ÀÎÀ» ÇÒ °Í ±Ç°íÇÔ.
   ¡Ø 2401 Æ÷Æ® start È®ÀÎ.

     - # netstat -an | grep 2401 [enter]

  ¡à ÀúÀå¼Ò ȯ°æ¼³Á¤

   1) .bash_profile ÆÄÀÏ¿¡ ¾Æ·¡ ³»¿ëÃß°¡
    - CVSROOT=:pserver:system°èÁ¤¸í@localhost:/cvshomedirectory/cvs; export CVSROOT

¥². USER REGISTRATION

  ¡à user µî·Ï À§ÇÑ .htaccess ÆÄÀÏ »ý¼º
¡Ø À̹ø¿¡ »ý¼ºµÇ´Â ÆÄÀϵéÀº ¸ðµÎ /cvshomedirectory/cvs/CVSROOT/¿¡ À§Ä¡ÇÔ.


   1) /cvshomedirectory/cvs/CVSROOT/.htaccess  (±¸ºÐÇÏ´Â Á¡¼±(----)Àº Á¦¿Ü)
  -------------------------------------------------------
   AuthName        '»ç¿ëÀÚÀÎÁõ¿¬½À'
   AuthType         Basic
   AuthUserFile      /cvshomedirectory/cvs/CVSROOT/.htaccess
   AuthGroupFile     /dev/null
   ErrorDocument 401 'Á˼ÛÇÕ´Ï´Ù!! ´ç½ÅÀº Á¤½Ä »ç¿ëÀÚ°¡ ¾Æ´Õ´Ï´Ù.'

   <Limit GET>
   require         valid-user
   </Limit>
  -------------------------------------------------------

  ¡à user µî·Ï À§ÇÑ .htpasswd ÆÄÀÏ »ý¼º
¡Ø htpasswd ¸í·É¾î´Â CVS¿¡ Æ÷ÇԵǾî ÀÖÁö ¾ÊÀ¸¹Ç·Î ´Ù¿î¹Þ¾Æ¾ß ÇÔ. unix apache ¼³Ä¡½Ã
  Æ÷ÇԵǾî ÀÖ´Â °æ¿ì°¡ ¸¹À¸¹Ç·Î unix¿¡¼­ find·Î °Ë»öÇÏ¿© À§Ä¡ ã¾Æº¼ °Í.


   1) htpasswd ¸í·É¾î »ç¿ëÀ» À§ÇØ /.profile ÆÄÀÏ PATH¿¡ ¾Æ·¡ °æ·ÎÃß°¡ => °¢ÀÚ È¯°æ¿¡ ¸Â°Ô.
    - PATH=/usr/apache/bin/
    - PATH ¼öÁ¤ ÈÄ telnet Àç ·Î±×ÀÎ (Çʼö)
   2) htpasswd ¸í·É¾î »ç¿ë .htpasswd ÆÄÀÏ »ý¼º
    - /cvshomedirectory/cvs/CVSROOT ·Î À̵¿
    - # htpasswd -c .htpasswd test [enter]
        Adding password for test.
        New password: <ºñ¹Ð¹øÈ£ ÀÔ·Â>
        Re-type new password : <ºñ¹Ð¹øÈ£ ÀÔ·Â>
     - # htpasswd .htpasswd admin [enter]
        Adding password for admin.
        New password: <ºñ¹Ð¹øÈ£ ÀÔ·Â>
        Re-type new password : <ºñ¹Ð¹øÈ£ ÀÔ·Â>
      ¡æ htpasswd ´ÙÀ½ -c ¿É¼ÇÀº ÃʱâÈ­ ¿É¼ÇÀ̹ǷΠµÎ¹ø°(admin)ºÎÅÍ´Â »ç¿ëÇÏÁö ¾ÊÀ½.
   3) loginÀ» À§ÇÑ passwd »ý¼º
     - 2)¹ø¿¡¼­ »ý¼ºµÈ .htpasswd ÀÇ ³»¿ëÀ» copyÇÏ¿© »ý¼ºÇÒ passwd ¿¡ pasteÇÔ
       ex) .htpasswd ³»¿ë
         test:uJ2.DWqX9eWfA
         admin:gJs2RVyAcNZG6
     - .htpasswd¿¡¼­ copyÇÑ ³»¿ëÀ» passwd ¿¡ paste ÇÑ ÈÄ ¾Æ·¡Ã³·³ modifyÇÔ
       ex) passwd ³»¿ë
         test:uJ2.DWqX9eWfA:°èÁ¤¸í  ¡æ  (cvs°èÁ¤:password:system°èÁ¤)
         admin:gJs2RVyAcNZG6:°èÁ¤¸í

       ¡Ø .htpasswd ÆÄÀÏÀÇ ³»¿ë µÚ¿¡ system°èÁ¤À» Ãß°¡ÇÑ °ÍÀÓ
       ¡Ø ÁÖÀÇ»çÇ×
         .htpasswd  , .htaccess ÆÄÀÏÀº »ý¼ºµÇ´Â ÆÄÀÏ·Î ÆÄÀÏ¸í ¾Õ¿¡ '.' ÀÌ ºÙÀ½


  ¡à system°èÁ¤À¸·Î permission ¼³Á¤

   - # chown system°èÁ¤ /cvshomedirectory/cvs [enter]
   - # chown systemr°èÁ¤ /cvshomedirectory/cvs/CVSROOT [enter]

  ¡à CVS login È®ÀÎ

   1) # cvs -d :pserver:system°èÁ¤@localhost:/cvshomedirectory/cvs login [enter]
       <Æнº¿öµå ÀÔ·Â>
      # ¡æ ¾Æ¹« ¸Þ½ÃÁö ¾øÀÌ ÇÁ·ÒÇÁÆ® ¶³¾îÁö¸é login ¼º°ø.

  PS : Á¦°¡ ÀÌ·¡Àú·¡ ¸Ç¶¥¿¡ ÇìµùÇϸç Á÷Á¢ ÀÛ¼ºÇÑ ¹®¼­´Ï ¾Æ·¡ ³»¿ëÀº
       »èÁ¦ÇÏÁö ¸¶½Ã°í »ç¿ëÇØ ÁÖ¼¼¿ä.^^//

  Copyright 2006 josephwjh All Rights Reserved
  josephwjh@empal.com


  Hit : 9421     Date : 2006/12/27 11:08



    
     [°øÁö] °­Á¸¦ ¿Ã¸®½Ç ¶§´Â ¸»¸Ó¸®¸¦ ´Þ¾ÆÁÖ¼¼¿ä^¤Ñ^ [29] ¸Û¸Û 02/27 19418
1595   [pwnable.kr] Shellshock[1]     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 48
1594   ShellshockÀÇ ±âº» ¿ä¾à     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 49
1593   [pwnable.kr] fd     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/23 43
1592   VPNÀÌ ¿¬°áµÇ¾ú´Ù°¡ µµÁß¿¡ ²¨µµ À¥ ºê¶ó¿ìÀú»ó¿¡¼­ À¯ÁöµÇ´Â ÀÌÀ¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 40
1591   ÇØÄ¿µéÀÌ ÇØÅ·½Ã »ç¿ëÇÏ´Â µð·ºÅ丮 °ø°£     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/22 44
1590   Keyboard Hooking -part2 - (Python3 ver)     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 49
1589   [Windows API] Keyboard Hooking     ÇØÅ·ÀßÇÏ°í½Í´Ù
11/20 41
1588   [pwnable.kr] cmd1 °ø·«     ÇØÅ·ÀßÇÏ°í½Í´Ù
10/23 186
1587   netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱ⠠   ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 481
1586   ÆÄÀ̽ãÀ» ÀÌ¿ëÇÑ ½ÉÇà À¥ Å©·Ñ·¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 378
1585   ÆÄÀ̽ã random¸ðµâÀ» ÀÌ¿ëÇÑ ¼ýÀÚ¸ÂÃ߱⠰ÔÀÓ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/30 917
1584   ÆÄÀ̽ã äÆà ÇÁ·Î±×·¥ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/28 809
1583   ÆÄÀ̽㠼ÒÄÏ ÇÁ·Î±×·¡¹ÖÀÇ ±âÃÊ     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/26 926
1582   ¸®´ª½º À¥ ·Î±× ºÐ¼®     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 640
1581   ¸®´ª½º/À©µµ¿ì º¸¾È Àåºñ ·Î±×     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 785
1580   °í¼ö´ÔµéÀÇ µµ¿òÀ» ¹Þ°í ½Í½À´Ï´Ù     vbnm111
02/11 878
1579   ¸®´ª½º Ä¿³Î 2.6 ¹öÀü ÀÌÈÄÀÇ LKM     jdo
07/25 1406
1578   ½©ÄÚµå ¸ðÀ½     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 2267
1577   Call by value VS Call by Reference     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 1576
1 [2][3][4][5][6][7][8][9][10]..[80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org