Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://www.arcetri.astro.it/manual/ko/programs/htpasswd.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013
Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 07:47:41 2014
Êîäèðîâêà: ISO8859-5

Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï
htpasswd - basic authenticationÏÅ Ë÷Ïû×â Ë÷ÏûÐêÖÔÐßÐË À?È?×áÄé - Apache HTTP Server
<-
Apache > HTTP Server > Documentation > Version 2.2 > Programs

htpasswd - basic authenticationÏÅ Ë÷Ïû×â Ë÷ÏûÐêÖÔÐßÐË À?È?×áÄé

ÀÅÄÙ×á Î?Îþ:  en  |  ko  |  tr 

ÐÜ É?Ì-ÄÒ ÓæÍÕÖ× É?Ï?ÐÜ ÎÖÄåÄßÄé. ÓæÁéÏÅ Ê?ÀöÅØ ÃËÏûÐÊ ÏÅÎþ É?Ì-È? Ò?Àý×ßÌÌÏô.

htpasswdÄÒ HTTP basic authenticationÏÅ Ë÷Ïû×â Ë÷ÏûÐêÈýÀ? ÎßØ?È? Ð?Ðõ×ßÄÒ ÐßÉíÖÔÐßÐË ËÌÊ×ßÀý Ì?Ñ?×áÄé. htpasswdÀÅ ÖÔÐßÐË ÎÂÀÕÃ? ÐàÐË Ì? Î?ÄéÈù, ÏÐÇ?Ë?ÕÒÈ? ÉíØ?×ßÀý ÎÖÉ?ÀÝÅÅ Ì?Ñ?×ßÑ? ÎÚÄÒÄé.

ÎÖÖÔÔÅ Ð?Ì-É?ÄÒ ÐêÏ?ÐË htpasswdÇÞ ÈÈÅ÷ ÖÔÐßÏÅ ÁòÇß×á Ë÷ÏûÐêÏÅÀäÈÈ ÊÈÏ?Ñé Ì? ÐæÄé. ÐÜ ×ÑÇÞÁçÇ?ÐÊ Ë÷ÏûÐêÈýÀ? ÎßØ?È? Ð?Ðõ×ßÄÒ ÐßÉí ÖÔÐßÐË À?È?×áÄé. ÁçÇ?Ã? ÄéÈ? ÐêÇñÐ?Ðõ ÉöÍÔÐË Ð?×è ÎßØ? Ñ?ÊÈÈ? ÎßØ?Ø-×ßÏ? Ð?Ðõ×â Ì? ÐæÄé. DBM Å?ÐÜÕÝÊ?ÐÜÍÊÈ? Ë÷Ïû×ßÇÑÈù dbmmanageÈ? Ò?Àý×ßÆ?.

htpasswdÄÒ ÎÖÖÔÔÅ Ö?Ð?Ð× MD5 Ø?ÐÊ ÍÓÍÊÕëÐ× crypt()È? Ë÷Ïû×ßÏ? ÎßØ?È? ÎßØ?Ø-×áÄé. htpasswdÀÅ À?È?×ßÄÒ ÖÔÐßÐÊ ÅÞ ÑÎÇ?Ð× ÎßØ?È? È?ÅÞ Ð?Ðõ×â Ì? ÐæÄé. Ñÿ, ÀÀÐÊ ÖÔÐßÏÅ MD5ÇÞ ÎßØ?Ø-×á ÎßØ?È? Ë÷Ïû×ßÄÒ Ë÷ÏûÐêÏÝ crypt()ÇÞ ÎßØ?Ø-×á ÎßØ?È? Ë÷Ïû×ßÄÒ Ë÷ÏûÐê Ñ?ÊÈ È?ÅÞ Ã?ÏÓ Ì? ÐæÄé.

ÐÜ manpageÄÒ ÈýÇÙ×ð ÏÙÌ×ÈÈÐË ÌÃÈý×áÄé. httpdÏÅÌ- Ë÷ÏûÐêÐÞÑ?ÐË ÌÃÑ?×ßÄÒ Ñ?ÍÓÎþÏÅ Äû×á ÌÃÈýÐÊ ÎÖÖÔÔÅ ÉøÖ?ÊËÏÅ Ö?×äÅ×ÐæÀý http://httpd.apache.org/ÏÅÌ-ÅÅ ÊÌ Ì? ÐæÄÒ ÎÖÖÔÔÅ ÌÃÈýÌ-È? Ò?Àý×ßÆ?.

Ò?Àý

top

ÀÃÏô

htpasswd [ -c ] [ -m ] [ -D ] passwdfile username

htpasswd -b [ -c ] [ -m | -d | -p | -s ] [ -D ] passwdfile username password

htpasswd -n [ -m | -d | -s | -p ] username

htpasswd -nb [ -m | -d | -s | -p ] username password

top

ÏÙÌ×

-b
ÉøÔÅ(batch) È?ÅõÈ? Ë÷Ïû×áÄé. ÏÉÈ? ÅùÎþ, ÎßØ?È? ÉÀÎþÊÈÑ?ÎÚÀý ÈýÇÙ×ðÏÅÌ- ÉîÄÒÄé. ÈýÇÙ×ðÏÅ ÎßØ?ÀÅ Ñ?Ñ? ÅõÇ?Ã?É×ÇÞ, ÐÜ ÏÙÌ×ÐÊ ÈÕÏü ÑÆÍÙ×èÌ- Ë÷Ïû×èÎï ×áÄé.
-c
passwdfileÐË ÈÈÅ÷Äé. passwdfileÐÜ ÐÜÉÜ ÑÈÐ÷×áÄéÈù, Å?ÎþÎÄÄé. ÐÜ ÏÙÌ×ÐË -n ÏÙÌ×À? ÀÀÐÜ Ë÷Ïû×â Ì? Î?Äé.
-n
ÖÔÐßÐË Ì?Ñ?×ßÑ?ÎÚÀý ÀñÀ?È? ×?ÑèÓòÇÒÐÈÇÞ ÓòÇÒ×áÄé. ÎÖÖÔÔÅÀÅ É?Ì-ÐÜÏìÐ× À?ÏÅ ËÌÊ×á ÎßØ?È? Ð?Ðõ×âÆ? Ð?Ïû×ßÄé. (×çË? ÓÉÉ?ÒÀ ÎÖÁäÈåÖ?ÐÞ) passwdfile ÎÖÁäÈåÖ?ÀÅ Î?ÁòÆ?É?ÏÅ ÈýÇÙ×ð É?ÉÐÜ ÄéÈ?Äé. -c ÏÙÌ×À? ÀÀÐÜ Ë÷Ïû×â Ì? Î?Äé.
-m
MD5È? Ë÷Ïû×ßÏ? ÎßØ?È? ÎßØ?Ø-×áÄé. Windows, Netware, TPFÏÅÌ- ÁòÊËÀ?ÐÜÄé.
-d
crypt()È? Ë÷Ïû×ßÏ? ÎßØ?È? ÎßØ?Ø-×áÄé. Windows, Netware, TPFÈ? Ñ?Ïì×á È?Å÷ ×ÓÇÅÖ?ÏÅÌ- ÁòÊËÀ?ÐÜÄé. È?Å÷ ×ÓÇÅÖ?Ð× htpasswdÀÅ ÐÜ ×?ÍÔÐË Ñ?Ï?×â Ì?ÄÒ ÐæÑ?ÈÈ, Windows, Netware, TPFÐ× httpd Ì-É?ÄÒ ÐÜ ×?ÍÔÐË Ñ?Ï?×ßÑ? ÎÚÄÒÄé.
-s
ÎßØ?È? SHA ÎßØ?Ø-×áÄé. LDAP Å?ÇÊÕôÈ?ÁÃØ?×?ÍÔ(ldif)ÐË Ë÷Ïû×ßÏ? Netscape Ì-É?ÇÞ Ñ?ÊÈÈ? ÊÈÃËÀÕÃ? ÀÕÑ?ÏÓÆ? Ð?Ïû×ßÄé.
-p
ÎßØ?È? ÁçÄûÇÞ Ë÷Ïû×áÄé. È?Å÷ ×ÓÇÅÖ?Ð× htpasswdÀÅ Ñ?Ï?×ßÑ?ÈÈ, Windows, Netware, TPFÐ× httpd Å?È?ÈÈÐÜ ÐßÉí ÎßØ?È? ÉîÄÒÄé.
-D
Ë÷ÏûÐêÈ? ËøÑ?×áÄé. htpasswd ÖÔÐßÏÅ Ë÷ÏûÐêÈýÐÜ ÐæÄéÈù ËøÑ?×áÄé.
passwdfile
Ë÷ÏûÐêÈýÀ? ÎßØ?È? Ð?Ðõ×ßÄÒ ÖÔÐßÈý. -cÈ? Ë÷Ïû×á ÀöÏü ÖÔÐßÐÜ Î?ÄéÈù Ë?ÇÞ ÈÈÅùÀý, ÐæÄéÈù Å?ÎþÎÄÄé.
username
passwdfileÏÅ ÈÈÅùÀÕÃ? Ì?Ñ?×â Ë÷ÏûÐêÈý. usernameÐÜ ÐÜ ÖÔÐßÏÅ Î?ÄéÈù ×çÈåÐË ÓïÀÅ×áÄé. ÐæÄéÈù ÎßØ?È? Ì?Ñ?×áÄé.
password
ÎßØ?Ø-×ßÏ? ÖÔÐßÏÅ Ð?Ðõ×â ÎßØ?. ÏÐÑ? -b ÏÙÌ×À? ÀÀÐÜ Ë÷Ïû×â Ì? ÐæÄé.
top

ÑÎÇñÔêÅõ

htpasswdÄÒ passwdfileÏÅ Ë÷ÏûÐêÈýÀ? ÎßØ?È? ÌÊÀ?Ð?ÐÈÇÞ ÓïÀÅ×ßÀÕÃ? Ì?Ñ?×á ÀöÏü ("Ò?") ÑÎÇñÔêÅõ 0ÐË ÉíØ?×áÄé. htpasswdÄÒ ÖÔÐßÏÅ Ñ?Áé×âÆ? É?Ñ?ÀÅ ÉïË×á ÀöÏü 1ÐË, ÈýÇÙ×ð ×?ÍÔÐÜ ÐïÈ?ÅØ ÀöÏü 2È?, ÐäÇÒ×á ÎßØ?ÏÝ Ø?ÐÞÒ? ÄéÍÓ ÐäÇÒ×á À?ÐÜ ÐßÔÅ×ßÑ? ÎÚÐÊ ÀöÏü 3ÐË, ÈýÇÙÐÜ ÑïÄìÅØ ÀöÏü 4È?, (Ë÷ÏûÐêÈý, ÖÔÐßÈý, ÎßØ?, ÓæÑÎ ÀøËúÀñÀ?) À?ÐÜ ÃÚÉ? Áô ÀöÏü 5È?, Ë÷ÏûÐêÈýÏÅ ×óÏû×ßÑ?ÎÚÄÒ É?ÐêÀÅ Ö?×äÅØ ÀöÏü Ñ?×á Ð Ò?Àý) 6È?, ÖÔÐßÐÜ ÏÓÉéÈ? ÎßØ?ÖÔÐßÐÜ ÎÖÄá ÀöÏü 7ÐË ÉíØ?×áÄé.

top

ÏÉÑ?

htpasswd /usr/local/etc/apache/.htpasswd-users jsmith

Ë÷ÏûÐê jsmithÐ× ÎßØ?È? ÓïÀÅ×ßÀÕÃ? Ì?Ñ?×áÄé. Ë÷ÏûÐêÏÅÀä ÎßØ?È? ÉÀÎþÊËÄé. Windows ÍÓÍÊÕëÏÅÌ- Í××ð×ßÈù ÎßØ?È? ÎÖÖÔÔÅ Ö?Ð?Ð× MD5 ÎÛÀýÈ?Ñ?ÐË Ë÷Ïû×ßÏ? ÎßØ?Ø-×ßÀý, ÎÖÄßÈù ÍÓÍÊÕëÐ× crypt() ×äÌ?È? Ë÷Ïû×áÄé. ÖÔÐßÐÜ Î?ÄéÈù htpasswdÄÒ ÎÖÉ? ÐßÅÅ ×ßÑ?ÎÚÀý ÏÐÇ?È? ÃÍÄé.

htpasswd -c /home/doe/public_html/.htpasswd jane

Ë?ÇÞ ÖÔÐßÐË ÈÈÅùÀý Áç ÖÔÐßÏÅ Ë÷ÏûÐê janeÐË ÓïÀÅ×áÄé. Ë÷ÏûÐêÏÅÀä ÎßØ?È? ÉÀÎþÊËÄé. ÖÔÐßÐÜ ÐæÑ?ÈÈ ÐàÀÕÃ? ÎÅ Ì? Î?ÄéÈù, htpasswdÄÒ ÖÔÐßÐË Ì?Ñ?×ßÑ?ÎÚÀý É?ÁÈÈ? ÓòÇÒ×áØÔ ÏÐÇ?Ë?ÕÒÈ? ÉíØ?×áÄé.

htpasswd -mb /usr/web/.htpasswd-all jones Pwd4Steve

ÈýÇÙ×ðÐ× ÎßØ?(Pwd4Steve)È? MD5 ÎÛÀýÈ?Ñ?ÐÈÇÞ ÎßØ?Ø-×ßÏ? Ñ?Ñ?×á ÖÔÐßÏÅ Ð?Ðõ×áÄé.

top

ÊÈÎØË? ÀýÇÑ×â ÑÅ

htpasswd ÅþÐÜ À?È?×ßÄÒ Ð? ÎßØ?ÖÔÐßÐÜ Ð?Ì-É?Ð× URI À?À?ÏÅ ÐæÐÈÈù ÎØÅØÄé. Ñÿ, ÊúÆ?ÏüÐ?ÀÅ ÐÜ ÖÔÐßÐË ÊÌ Ì? Î?ÎþÎï ×áÄé.

ÈýÇÙ×ðÏÅ ÎßØ?Ø-×ßÑ?ÎÚÐÊ ÎßØ?È? Ë÷Ïû×ßÁòÆ?É?ÏÅ -b ÏÙÌ×ÐË ÓïÓÅ×ßÑ? ÎÚÄÒÄé.

top

Ñ?×á

WindowsÏÝ MPE ×ÓÇÅÖ?ÐÊ htpasswdÀÅ ÎßØ?Ø-×ßÄÒ ÎßØ?Ð× ÁöÐÜÈ? 255 É?ÐêÇÞ Ñ?×á×áÄé. Ä? Áô ÎßØ?ÄÒ 255ÐêÏÅÌ- Ò?ÈÀÄé.

htpasswdÀÅ Ë÷Ïû×ßÄÒ MD5 ÎÛÀýÈ?Ñ?ÐÊ ÎÖÖÔÔÅ Ìâ×ÑÖ?Ï?Îþ Ö?Ð?Ð× ÀÝÐÜÄé. ÐÜÈ? Ë÷Ïû×ßÏ? ÎßØ?Ø-×á ÎßØ?È? ÄéÈ? Ð?Ì-É?ÏÅÌ- Ë÷Ïû×â Ì? Î?Äé.

Ë÷ÏûÐêÈýÐÊ 255 ÉéÐÜÖ?ÇÞ Ñ?×áÅ×Àý : É?ÐêÈ? Ö?×ä×â Ì? Î?Äé.

ÀÅÄÙ×á Î?Îþ:  en  |  ko  |  tr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.