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

Re: Strange group inheritance in +t directories (3.1-Stable)



Thanks for the quick reply Hannah.

I thought that the g+s  and u+s properties on directories controlled inheritance of owner/group.
If this is not the case, where is the behaviour for s[gu]id on directories documented?

Thanks-
Matt





On Wed, Jul 10, 2002 at 06:49:30PM +0200, Hannah Schröter wrote:
> Hello!
> 
> On Wed, Jul 10, 2002 at 12:24:04PM -0400, vmz wrote:
> >[...]
> >testbox:test {2} ls -lad /tmp
> >drwxrwxrwt  2 root  wheel  512 Jul 10 12:18 /tmp
> >testbox:test {3} ls /tmp/newfile
> >ls: /tmp/newfile: No such file or directory
> >testbox:test {4} touch /tmp/newfile
> >testbox:test {5} ls -al /tmp/newfile
> >-rw-r--r--  1 test  wheel  0 Jul 10 12:19 /tmp/newfile
> 
> This is normal BSD behaviour and will happen in *all* directories,
> regardless of whether +t is set or not:
> 
> Newly created files have owner (euid of process which created the
> file) and group (group of the directory where the file is created in).
> Permissions will be (permissions given to open(2) & ~ (umask of
> creating process)).
> 
> Kind regards,
> 
> Hannah.



Visit your host, monkey.org