[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange group inheritance in +t directories (3.1-Stable)
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Strange group inheritance in +t directories (3.1-Stable)
- From: vmz <vmz_(_at_)_berlin_(_dot_)_darkmaze_(_dot_)_com>
- Date: Wed, 10 Jul 2002 13:17:06 -0400
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