Axil S/E kdk020
				  1997. 4. 16
				  Kim Do Kyung

SUBJECT: À¥ ÀÎÁõ(User Athentication)

DESCRIPTION:

¡Ú À¥ ÀÎÁõ(User Athentication) 

  µî·ÏµÈ »ç¿ëÀÚ¸¸ÀÌ Æ¯Á¤ URLÀ» ¾×¼¼½º ÇÒ ¼ö ÀÖµµ·Ï ÇÏ´Â ¹æ¹ýÀ» ¸»ÇÑ´Ù.

hyundai2# pwd
/usr/local/etc/httpd/htdocs/internal

hyundai2# cat .htaccess <= "conf/srm.conf"¿¡¼­ "AccessFileName"À̶ó´Â ¸®¼Ò½ºÀ̸§
 			   À¸·Î ÀÌ¹Ì ¼³Á¤ÀÌ µÇ¾î ÀÖ¾î¾ß ÇÔ

AuthUserFile /usr/local/etc/httpd/htdocs/internal/.htpasswd <= UID¿Í PASSWD°¡ Á¤
 							       ÀǵǾî ÀÖÀ½
AuthGroupFile /usr/local/etc/httpd/htdocs/internal/.htgroup <= GROUPÀÌ Á¤ÀǵǾî 
 							       ÀÖÀ½
AuthName ³»ºÎÀ¯Àú¸¦ À§Çѹæ <= UID¿Í PASSWD¸¦ ¹°¾îº¸´Â À©µµ¿ì¿¡ ¹æÁ¦¸ñ(?)À¸·Î »ç¿ëµÈ´Ù.
AuthType Basic <= ÇöÀç´Â À¯Àú¸¦ ÀÎÁõÇÏ´Â ¹æ¹ýÀÌ Basic¹Û¿¡ ¾ø´Ù
<Limit GET>
require group myusers
<Limit>

À¯ÀúÀÇ Æнº¿öµå µî·ÏÀº "support/htpasswd"¶ó´Â ¸í·É¾î¸¦ ÀÌ¿ëÇØ µî·ÏÇÑ´Ù.

	Usage: htpasswd [-c] passwordfile username
	The -c flag creates a new file.

Example ) /usr/local/etc/httpd/support/htpasswd -c .htpasswd kdk <= kdkÀ¯ÀúÀÇ 
								    µî·Ï ¿¹


   ¡Ø .htaccessÀÇ ¶Ç ´Ù¸¥ ¿¹

AuthUserFile /usr/local/etc/httpd/htdocs/internal/.htpasswd 
AuthGroupFile /usr/local/etc/httpd/htdocs/internal/.htgroup
AuthName Å×½ºÆ®ÀÔ´Ï´Ù 
AuthType Basic 
<Limit GET POST>
require valid-user
</Limit>

hyundai2# cat .htpasswd

kdk:/Qp/9ctpT3Iro
kdk2:mxrcaAyNrn7Qc

hyundai2# cat .htgroup

myusers: kdk kdk2