LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-22-2008, 05:29 PM   #1
Russianspi
LQ Newbie
 
Registered: May 2007
Posts: 19

Rep: Reputation: 2
Apache2 Require user with Require group


Hi. I am transitioning an Apache 2.2.4 server from using mod_auth_mysql for authentication to using auth_basic. Although mod_auth_mysql is a neat solution, it was hard on my sql server. This is a small, company database, and at the direction of someone who had tried something similar, I will use a python script to run daily and update my .htaccess and .htgroup files. Because of that change, I need to change my configuration files to set up access to my protected directories again. This has been a relatively uneventful process, except for one thing: In apache2_mod_auth_mysql, if, in your <Directory> section, you use:
Code:
require user jdoe jsmith
require group admin
then jdoe, jsmith AND everyone in the admin group have access to the directory, regardless of which group jdoe and jsmith belong to.

This doesn't seem to me to be the way that auth_basic in Apache 2.2.4 works. From what I can tell (in my limited experiments), that same code above would allow only jdoe and jsmith access to the directory, and only if they were in the group "admin". Is there a way to make this work like these same directives in mod_auth_mysql? I would have to rewrite my whole group structure to make this change otherwise.

I have searched the Apache 2.2 manual, but can't seem to find anything on this topic. Google doesn't seem to have any easy answers, either. Please help! Thanks!
 
Old 01-29-2008, 01:27 AM   #2
tbelote
Untangle
 
Registered: Jan 2008
Location: Mountain View, CA
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
Does adding this help?:

Satisfy All


http://httpd.apache.org/docs/2.2/mod/core.html#satisfy
 
Old 01-30-2008, 11:21 AM   #3
Russianspi
LQ Newbie
 
Registered: May 2007
Posts: 19

Original Poster
Rep: Reputation: 2
Default Value

I wish it did. It seems, from looking at the directive, Satisfy All is the default value. I tried this without defining Satisfy several times. But thanks!
 
  


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
Require a little help with pf Carpo *BSD 2 01-15-2008 06:20 AM
require help with security Carpo Slackware 2 08-21-2007 04:24 PM
How many cd's do i require for FC 6 b0nd Fedora 3 12-17-2006 11:49 PM
URGENT help require manishpatidar Linux - Hardware 1 02-03-2006 03:27 AM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

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

All times are GMT -5. The time now is 11:02 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
Open Source Consulting | Domain Registration