LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-03-2007, 07:51 AM   #1
charafantah
Member
 
Registered: Feb 2005
Distribution: debian 3.0 woody/mandrake 10.1
Posts: 34

Rep: Reputation: 15
Apache + PAM


Hello,
am running Apache/1.3.33 and i want to use .htaccess/PAM to allow the system users to access certain directories

i have this in my /etc/pam.d/httpd
Code:
auth required /lib/security/pam_unix.so debug
auth required /lib/security/pam_warn.so debug
account required /lib/security/pam_unix.so debug
account required /lib/security/pam_warn.so debug
this in my .htaccess
Code:
AuthPAM_Enabled on
AuthType Basic
AuthName "Accounting - Please enter your password"
require user user1 user2
require group accounting

now, everytime i try to login, it prompts me for a password but i cant login.

the apache error log shows this:
Code:
[Wed Jan  3 15:20:39 2007] [error] (25)Inappropriate ioctl for device: access to /expenses/ failed for 192.168.10.200, reason: Authentication failure

the auth.log shows this:

Code:
Jan  3 15:20:37 myhost apache: (pam_unix) authentication failure; logname= uid=33 euid=33 tty= ruser= rhost=192.168.10.200  user=user1
Jan  3 15:20:37 myhost PAM-warn[18751]: function=[pam_sm_authenticate] service=[httpd] terminal=[<unknown>] user=[user1] ruser=[<unknown>] rhost=[192.168.10.200]

user1 exists and can login to the system,,, but some how apache/pam cant see that



thanks in advance,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache authentication on SuSE via PAM/system auth files jantman Linux - Server 0 10-02-2006 11:06 PM
Apache auth_pam / pam winbind deny failed user auth collen Linux - Security 3 04-10-2006 03:20 AM
vsftpd + pam + virtual users - Pam cannot load database file. mdkelly069 Linux - Networking 3 09-23-2004 12:07 AM
can't authenticate in apache using PAM JGarcia Linux - Security 1 09-03-2003 01:36 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration