[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

AW: Apache: adding massive amount of users for .htaccess from text file



wow!

> > > #!/usr/bin/perl
> > > 
> > > while (<>) {
> > >    ($username, $password)=split /:/, $_, 2;
> 
> 	chomp($password);
> 
> > >    system("/usr/bin/htpasswd", "-b", "/path/to/htaccess", 
> > > $username, $password);
> > > }

Nice one, this did it - thank you all for contributions!

Have a nice weekend people...

Erik



Reply to: