Gossamer Forum
Home : General : Perl Programming :

Multiple password adder for .htpasswd - Please help

Quote Reply
Multiple password adder for .htpasswd - Please help
Is there a multiple password adder for .htpasswd instead of having to add them individually? I have 3000 passwords that I need to add to the site that were generated and it's taking an awful long time to add them manually. Please help me.

Regards
Mark Gilbert
Quote Reply
Re: Multiple password adder for .htpasswd - Please help In reply to
Do you have a copy of the old htpasswd file? If so, just copy the file. If not, you could always create a simple perl program that could go through a list of passwords and usernames (it would still have to be in a text file of some sort) and then basically use it as an automated shell for the htpasswd program. If you don't have a file with that data, you are basically up the creek, and will have to add them manually one way or another.


------------------
Fred Hirsch
Web Consultant & Programmer