You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Scott <ms...@pyewacket.org> on 2003/10/20 05:17:54 UTC

[users@httpd] htpasswd question

I want to set up a password protected area on a web server and have created an
initial password file using htpasswd.

I want to make it possible via a CGI script for users to change their passwords,
however, I don't want Bill to be able to change Jim's password.

One way would be to require the user enter their current password.  I was
planning on executing `htpasswd -nb username currentpasswd` and verifying the
hash against what's in the file.

The problem is, each time I execute the htpasswd command with the same password,
the hash is different.  How can that be?

----------------------
- Mike Scott
- mscott@pyewacket.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org