PDA

View Full Version : .htpasswd not working in firefox



Chris
04-14-2006, 10:09 AM
I used cpanel to password protect a directory and it works fine in IE, but in firefox users cannot login, it repeatedly rejects their password. I did a Google search but couldn't find anyone with a similar problem. Anyone encounter this before?

Masetek
04-14-2006, 08:31 PM
Maybe try doing it maually. Use this for your .htaccess:



AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "YOUR SECURE AREA"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>


Then create the .htpasswd using this:
http://www.euronet.nl/~arnow/htpasswd/

Might work, I dunno but its worth a try.

darker
04-15-2006, 05:07 AM
add this to your .htaccess



AuthUserFile /home/someuser/public_html/somdirectory/.htpasswd
AuthGroupFile /home/someuser/public_html/somdirectory/.htgroups
AuthName "Secure Area"
AuthType Basic
require group editors


just remember to change someuser etc.

then create .htgroups, example:

editors: chris darker

This creates two users, chris and darker

then, we need passwords for those users, run this comman from shell



htpasswd -nmb chris bucket >>.htpasswd
htpasswd -nmb darker pail >>.htpasswd


Notice: if you use apache2, it's htpasswd2.

and then, chmod to 644 (chmod 644 .ht*)


This works as a charm for me.

Chris
04-15-2006, 08:29 AM
turns out the person was just typing their password in wrong when using FF.

darker
04-15-2006, 09:55 AM
lol :)