Web Hosting Talk







View Full Version : Problems with .htaccess - Please help


vSector
04-25-2002, 08:36 PM
Hello everyone,

I am having a very strange problem with securing a directory on my raq4i server. My problem is when i create the .htaccess and .htpasswd files it does not use the passwords in the .htpasswd file, instead it uses the main one in /etc/passwd

===== .htaccess file ======

AuthUserFile /home/mcp/.htpasswd
AuthGroupFile /dev/null
AuthName "Members Area"
AuthType Basic

require valid-user


===== .htpasswd file ======

asdf:gRaaSKbxEkWfk


Any suggestions of what im doing wrong??

elsmore1
04-26-2002, 12:21 AM
Sounds like the problem may be that Apache is using PAM authentication or some other method. If it is PAM, put this line in your .htaccess in addition to what you already have there....

AuthPam_Enabled off



Originally posted by vSector
Hello everyone,

I am having a very strange problem with securing a directory on my raq4i server. My problem is when i create the .htaccess and .htpasswd files it does not use the passwords in the .htpasswd file, instead it uses the main one in /etc/passwd


Any suggestions of what im doing wrong??

vSector
04-26-2002, 12:51 AM
thanks elsmore1..

it works now.

what is pam authentication for?

elsmore1
04-26-2002, 09:55 AM
PAM is a system of libraries that handle the authentication tasks of applications (services) on the system. The library provides a stable general interface (Application Programming Interface - API) that privilege granting programs (such as login and su) defer to to perform standard authentication tasks.

See `man pam' for more details.



Originally posted by vSector
thanks elsmore1..

it works now.

what is pam authentication for?