cgisupp
04-22-2001, 05:56 AM
This is a bit of an obscure one, but has anybody come accross this problem with a RAQ. A client has an ibill password script that uses the switch htpasswd -b -m , never heard of the -b switch myself.. Can I update the htpasswd utility without breaking anything? - Bruce
cgisupp
04-22-2001, 11:39 PM
well found out that this utility is installed with Apache and is available on later versions of Apache. Just for the record
thewebbie
04-22-2001, 11:55 PM
You may have an older version of htpasswd..
-m is MD5 and -b is to accept the password on the command line.. Very simple..
Type htpasswd on the command line and it will display syntax. You will need to update your Apache to get a new htpasswd.
[root@ /root]# htpasswd
Usage:
htpasswd [-cmdps] passwordfile username
htpasswd -b[cmdps] passwordfile username password
htpasswd -n[mdps] username
htpasswd -nb[mdps] username password
-c Create a new file.
-n Don't update file; display results on stdout.
-m Force MD5 encryption of the password.
-d Force CRYPT encryption of the password (default).
-p Do not encrypt the password (plaintext).
-s Force SHA encryption of the password.
-b Use the password from the command line rather than prompting for it.
On Windows, TPF and NetWare systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.
thewebbie
04-22-2001, 11:58 PM
Originally posted by cgisupp
well found out that this utility is installed with Apache and is available on later versions of Apache. Just for the record
What RAQ do you have? You can just compile htpasswd from the apache src which you can get from www.apache.org
cgisupp
04-23-2001, 12:00 AM
Yep done that, thanks anyway for your thorough reply.