> I've recently started using a apache server running on a linux box as a
> sort of test bed. The trouble is I can figure out how to create the
> passwords for the htpasswd files. I've tried the htpasswd perl script, but
> this doesn't seem to create passwords of the right encryption type. Could
> some one please help me with a little plain easy to follow advice on how to
> setup another username and password on an already existing htpasswd.
On most Unix boxes the Perl crypt() would use the system crypt() and so
would apache. But you cannot use DES passwords if the system uses MD5 and
vice versa. An htpasswd file is a simple list of colon separated
(anything after optional 2nd colon ignored):
But if your webserver is a Windows box, it might not have a system crypt()
and you likely have to use the htpasswd program that comes with apache.
Or I heard that some Windows might use plain text passwords.
If you are on a Cobalt server, read recent news postings from the past
week or do a news search about "Cobalt htpasswd". It seems to use system
passwords by default instead of your own htpasswd.
David Efflandt - All spam is ignored - http://www.de-srv.com/