[GLLUG] Apache Authentication
Scott Harrison
harris41 at msu.edu
Sun Jul 13 02:07:12 EDT 2003
Hi Tom:
I would suggest (and forgive me if I am missing
something about your circumstance here):
GOAL: htaccess_windows --> htaccess_linux
1. The file "htaccess_windows",
--beginfile--
joe:123
sally:234
morphy:345
--endfile--
2. touch "htaccess_linux"
3. cat htaccess_windows | \
perl -nle \
'my($u,$p)=split(m/\:/);`htpasswd -b htaccess_linux $u $p`;'
4. End result is:
--beginfile--
joe:/fAbLaLMEK33o
sally:/f7q3z635XEV.
morphy:/fidCW1e3Ww3I
--endfile--
Regards,
Scott
On Sat, 2003-07-12 at 19:32, Thomas Alan Hearn wrote:
> Hello fellow GLLUGers,
> I have yet another question concerning apache. This time my problem is as
> follows. I am transferring a website that used to be on a windows apache
> server, and the login for the site was .htaccess and http auth type login.
> My problem is that the .htpasswd file was stored with the passwords in plain
> text on the windows machine. If I remember correctly, i believe linux
> requires that .htpasswd files be store encrypted? My problem is that there
> are over 300 users on the site and to manually change all those passwords
> would be horrible. Anyone have any suggestions, and if not, know how to get
> about encrypting the file?
>
> Thanks in advance,
> Cheers,
> Tom
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://www.egr.msu.edu/mailman/listinfo/linux-user
More information about the linux-user
mailing list