<-
Apache > HTTP Server > Documentation > Version 2.4 > Programs

htpasswd - basic authentication�� ����� ����������� �����Ѵ�

������ ���:  en  |  fr  |  ko  |  tr 

�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.

htpasswd�� HTTP basic authentication�� ����� ����ڸ��� ��ȣ�� �����ϴ� �Ϲ������� �����ϰ� �����Ѵ�. htpasswd�� ������ ���ų� ���� �� ���ٸ�, �������¸� ��ȯ�ϰ� �ƹ��͵� �������� �ʴ´�.

����ġ �������� �ڿ��� htpasswd�� ���� ���Ͽ� ����� ����ڿ��Ը� ������ �� �ִ�. �� ���α׷��� ����ڸ��� ��ȣ�� �����ϴ� �Ϲ� ������ �����Ѵ�. �׷��� �ٸ� �ڷ����� ����� ���� ��ȣ ������ ��ȣȭ�Ͽ� ������ �� �ִ�. DBM �����ͺ��̽��� ����Ϸ��� dbmmanage�� �����϶�.

htpasswd�� ����ġ Ư���� MD5 Ȥ�� �ý����� crypt()�� ����Ͽ� ��ȣ�� ��ȣȭ�Ѵ�. htpasswd�� �����ϴ� ������ �� ������ ��ȣ�� ��� ������ �� �ִ�. ��, ���� ���Ͽ� MD5�� ��ȣȭ�� ��ȣ�� ����ϴ� ����ڿ� crypt()�� ��ȣȭ�� ��ȣ�� ����ϴ� ����� ���� ��� ���� �� �ִ�.

�� manpage�� ������ �ɼǸ��� �����Ѵ�. httpd���� ����������� �����ϴ� ���þ ���� ������ ����ġ �������� ���Ե��ְ� http://httpd.apache.org/������ �� �� �ִ� ����ġ �������� �����϶�.

Support Apache!

����

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  |  fr  |  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.