homepage Welcome to WebmasterWorld Guest from 54.205.106.111
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Allow from Group
netcommr




msg:914759
 7:51 pm on Dec 20, 2001 (gmt 0)


I need to allow access to certain global file names at the owner level, such as htaccess.

Currently...

<Files .htaccess>
Order allow,deny
Deny from all
</Files>

I have only found instructions on allow from domain/ip. How can I allow access to the htaccess files for 'owner' or 'group'?

 

Key_Master




msg:914760
 3:55 am on Dec 21, 2001 (gmt 0)

Here's a good tutorial on the subject:

[mathcs.richmond.edu...]

netcommr




msg:914761
 11:09 pm on Dec 21, 2001 (gmt 0)


I appreciate the help, but I think you missed what I need to accomplish due to my lack of explantion.

The situation is multiple virtual hosts and I want a global declaration to allow access to the htaccess files for the client, but still restrict from world access.

The challenge is some ftp programs do not show htaccess files and some do. For those that do not, I can only guess it is using http protocol to connect and therefore the global declaration in the httpsd.conf for Apache is what is hiding the files.

Something like this:

SetEnvIf Remote_User /??what to match??/ valid_user
<Files .htaccess>
Order allow,deny
Deny from all env=!valid_user
</Files>

How can I get the enviroment to contain 'valid_user' if the logged in user is equal to the UID(owner) of the file.

Its not that big of a deal, but I would like to know how others solved this.

littleman




msg:914762
 12:52 am on Dec 22, 2001 (gmt 0)

You are talking in shell? Well in shell you will have a bit of a problem. You could chmod it 700, but then apache will not be able to access it unless you run apache as the user. I think most people would advise against that.

If you want to just block access to it from the web then you could just put this in your httpd.conf file:

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved