LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-08-2005, 08:05 AM   #1
stomach
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 202

Rep: Reputation: 30
apache mod_auth_pam


Good Day,

I installed the module auth of the apache

httpd.conf

Code:
LoadModule auth_pam_module modules/mod_auth_pam.so
LoadModule auth_sys_group_module modules/mod_auth_sys_group.so
and

Code:
<Directory /home/httpd/html>
  AuthPAM_Enabled on
  AuthAuthoritative off
  AllowOverride None
  AuthName "Family Secrets"
  AuthType "basic"
  require group users
</Directory>

/etc/pam.d/httpd

Code:
#%PAM-1.0
auth       required     /lib/security/pam_unix.so
account    required     /lib/security/pam_unix.so

When it asks for login, happens this error:

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.


/var/log/httpd/errors
Code:
[Thu Sep 08 10:03:49 2005] [error] [client 192.168.254.4] PAM: user 'stomach' - not authenticated: Authentication failure
 
Old 09-08-2005, 09:52 AM   #2
stomach
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 202

Original Poster
Rep: Reputation: 30
Unhappy

help please
 
Old 09-08-2005, 09:56 AM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
It may be related to this.
 
Old 09-08-2005, 10:09 AM   #4
stomach
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 202

Original Poster
Rep: Reputation: 30
I looked at is page, but I did not understand. It does not have as to make this?
 
Old 09-08-2005, 10:14 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If you use shadow passwords and apache cannot read the shadow file, then apache cannot authenticate users.
 
Old 09-08-2005, 10:21 AM   #6
stomach
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 202

Original Poster
Rep: Reputation: 30
Then it does not have advantage to use this module
 
Old 09-08-2005, 10:22 AM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Why not? How else would you perform pam auth?
 
Old 09-08-2005, 10:24 AM   #8
stomach
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 202

Original Poster
Rep: Reputation: 30
I do not go to have problems, modifying the group of shadow?
 
Old 09-08-2005, 10:28 AM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If shadow is, as it defaults to, 600 permissions owned by root:root, then apache would need to run as root to authenticate against the shadow file.
 
Old 09-08-2005, 10:29 AM   #10
stomach
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 202

Original Poster
Rep: Reputation: 30
Thanks!
it functioned perfectly!


it forgives my English is bad
 
Old 09-08-2005, 10:31 AM   #11
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I'm glad you were able to get it working.

Your english is not too bad, and I understand that we're a global community, not confined to any singular land or language.
 
Old 09-08-2005, 10:36 AM   #12
stomach
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 202

Original Poster
Rep: Reputation: 30
Ok thanks! I go to start to participate more, of this great community! Perhaps I go to change my user, for my true name. Thus it is more easy for the people to understand me.
 
Old 09-08-2005, 10:42 AM   #13
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yes, it is a great community. We all have much to learn and much to share.
 
  


Reply



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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM
mod_auth_pam installation problem !!! chuck77 Linux - General 1 02-04-2002 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 PM.

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
Open Source Consulting | Domain Registration