NAME

htpasswd - create a Base64 encoded password in a .htaccess file


SYNOPSIS

htpasswd [ options ] <passwdfile> <username> [<passwd>]


DESCRIPTION

htpasswd can be used to create password files that can be used by the Zeus Web Server's htaccess module. These are usually specified by the AuthUserFile or AuthGroupFile directive in a .htaccess file. The format of this file is a series of lines with user:password pairs, the password being a relatively simple Base64 (insecure) encoding. For this reason, it is good practise to keep these files readable only by the document root owner.

htpasswd can either change a user's password or delete that user from the password file. If the user does not already exist in the password file, they are added. The passwd option specifies the user's new password, and if not provided on the command line, the htpasswd program prompts twice for a new password, checking that both entries match.


OPTIONS

-c

If the password file specified does not exist, then create it, else report an error that the file does not exist.

-d

Delete the specified user from the password file. If the user is not in the password file, and error message is printed and htpasswd exits with a non-zero exit status.


SEE ALSO:

httpclient(8)


COPYRIGHT

Copyright (C) 2000-2001 Zeus Technology Limited. All rights reserved.