[CentOS] apache docroot permissions

Wed May 4 22:35:21 UTC 2011
Stephen Harris <lists at spuddy.org>

On Thu, May 05, 2011 at 12:31:15AM +0200, Kai Schaetzl wrote:
> Kenneth Porter wrote on Wed, 04 May 2011 14:12:32 -0700:
> 
> > Make the writable directories SGID and any files and subdirectories created 
> > there will inherit the group ownership:
> 
> AFAIK, this works on Unix, but not on Linux. On Linux you have to use ACLs, as 

It works on Linux.

  $ id -a
  uid=500(sweh) gid=500(sweh) groups=0(root),500(sweh),501(vboxusers)
  $ ls -ld .
  drwxr-sr-x 2 sweh bin 4096 May  4 18:33 ./
  $ ls -l hmmm
  /bin/ls: hmmm: No such file or directory
  $ touch hmmm
  $ ls -ld hmmm
  -rw-r--r-- 1 sweh bin 0 May  4 18:33 hmmm

So the file I just created is in group bin even though I am not in that
group.

-- 

rgds
Stephen