Search | Directories | Reference Tools
UW Home > UWIN > Computing and Networking > Software Guide 
-->
 
[Software Guide]
   
  UW Software Resources:
    Site Licenses 
 >   UW Tech Computers 
      A-Z Software List
      Computer List
      Software Category List
      Guidelines for Use
      Software Update Policy 
   
   
   
 

htpasswd

Available on the computers: Ovid and Vergil

Htpasswd is used to create users and passwords for password protected Web sites. Given a username, it prompts for a password, confirms the password, and writes an encrypted version of the password to a password file.

Using the Software
To create a password file called .htpasswd and add "username" as the first user, at the system prompt type:

% htpasswd -c .htpasswd username

The program will prompt you for a password, then verify it by asking again. (The -c flag creates a new password file.)

To add another user, use the same command without the -c flag. The following example will add username "another" to the same password file:

% htpasswd .htpasswd another

To delete a user, open your password file in a text editor and delete the appropriate lines.

Documentation
To learn how to password protect your Web site, refer to Controlling Access to Web Pages. Step-by-step instructions are provided, including how and when to run the htpasswd command.

Technical Support
Help is available from UW Technology. Send a question to help@u.washington.edu if you need help with this software.