Forum Moderators: phranque

Message Too Old, No Replies

How to protect a directory with '/etc/passwd'

Using Linux users to create access permissions on Apache

         

guarriman

10:40 am on Sep 7, 2005 (gmt 0)

10+ Year Member



Hi.

Using Apache/2.0.52 on Linux, I want to protect a directory by using
my '/etc/passwd' file and modifying 'httpd.conf':

-------------
<Directory "/home/website/htmldocs">
Options Indexes +FollowSymLinks
AllowOverride All
AuthUserFile /etc/passwd
AuthType Basic
AuthName "Protected"
require user joe
</Directory>
-------------

As supposed, it doesn't work. But, is there any way to use
'/etc/passwd' to protect a directory?

Thx.

jdMorgan

9:38 pm on Sep 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



guarriman,

About all I can think of is to recomend that you read the Apache Authentication, Authorization, and Access Control [webmasterworld.com] documentation, and see if that may help.

Jim