Htpasswd

From NixTheWorld

Jump to: navigation, search

htpasswd files are generally used in conjunction with .htaccess files to restrict user-access to specific directories from within apache.

To create a .htpasswd file:

# htpasswd -c /path/to/file/.htpasswd username
New password:
Re-type new password: 
Adding password for user username

To add additional users to that same existing .htpasswd file:

# htpasswd /path/to/file/.htpasswd otheruser
New password:
Re-type new password: 
Adding password for user otheruser

snippet

Personal tools