Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-18-2003, 08:11 AM   #1
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
Question A Tricky question in Apache!!

I got a tricky question here! I managed to authenticate users via mod_auth_db in Apache. Now I have 5 directories. I need the apache to be configured in such a way that , if there are four users A, B, C & D.
A should be able to access all the directories, B only the first two directories, C the first three directories and D the first four directories.
How can I accomplish that??

Old 02-20-2003, 09:19 AM   #2
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
You will need to edit your access.conf file to something like:

<Location /_directory_>
AuthType Basic
AuthName _A_
AuthUserFile _passfile_from_A
<Limit GET POST>
require user A

<Location /_directory_>
AuthType Basic
AuthName _B_
AuthUserFile _passfile_from_B
<Limit GET POST>
require user B

The passfiles are generated with htpasswd, hope that helps ...


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
Xorg tricky question festino114 Linux - General 4 06-29-2005 03:51 PM
Tricky installation question or1onas Linux - Newbie 3 04-28-2004 05:16 PM
a tricky question archlyric Linux - Newbie 3 02-27-2004 02:06 AM
Tricky apache configuration J_Szucs Linux - Software 7 08-24-2003 09:24 AM
Tricky Konqueror Question gbrad Linux - General 2 03-02-2003 06:32 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:27 AM.

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