Preferred apache permissions for www files with several authors

Posted by user1316464 on Server Fault See other posts from Server Fault or by user1316464
Published on 2012-09-27T19:51:37Z Indexed on 2012/09/27 21:40 UTC
Read the original article Hit count: 215

Filed under:
|

I can't for the life of me figure out how to design my permissions scheme for my apache files. My requirements seem pretty simple:

  1. Apache should have standard permissions of RX for Directories and R for files
  2. Web authors should have RWX for Directories and RW for files
  3. Don't want to give any access to "other"
  4. Want new files/folders to inherit the proper permissions

Here are the schemes I've tried

570 for directories and 460 for files Owner: Apache Group: Webdev

The problem here is that new files created by users int the Webdev group are owned by user:Webdev and Apache can't read them. If Apache were in the group Webdev then it would also have the wrong permissions (ie it would have Write permissions to files)

750 for directories and 640 for files Owner: Webdev Group: Apache

(Webdev is a member of Apache)

The problem here is that there is only one webdev account and I have multiple people who need access to contribute. In theory this would work with only one developer if Webdev were also a member of the Apache group.

Any ideas?

© Server Fault or respective owner

Related posts about linux

Related posts about apache2