How do I set up a shared directory on Linux?
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:
- Apache should have standard permissions of RX for Directories and R for files
- Web authors should have RWX for Directories and RW for files
- Don't want to give any access to "other"
- 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.