Re: apache docroot permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux