Web Hosting Talk







View Full Version : .htpasswd ?


dutchie
03-16-2002, 09:01 AM
A user tries to protect his directory by creating a .htaccess file.


AuthUserFile /home/sites/site38/web/test/.htpasswd
AuthGroupFile /dev/null
AuthName tandem4ever-members-section
AuthType Basic

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


he then created a .htpasswd file with this content
login:pass

Now when you enter the dir, i need to enter thelogin en password, but he won't accept the password.

So i telnetted in, deleted the .htpasswd and tried to create a .htpasswd file myself.
htpasswd -c .htpasswd login

I then get a message : command htpasswd is not found

Whats wrong , how do i get this to accept the password he is asking for ?

ffeingol
03-16-2002, 09:05 AM
Try "locate htpasswd" from a shell prompt. On the RAQ I help with it's in /usr/bin/htpasswd

Frank

Pingu
03-16-2002, 11:46 AM
The correct command would be:
/usr/sbin/htpasswd

Even then it still wouldn't accept a password, unless it's the same as the useraccount on your raq. To bypass this, put this line in the .htaccess:
AuthPAM_Enabled off

dutchie
03-16-2002, 02:30 PM
Ok it works !

Thanks both :)