[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: Hannah Schröter <hannah_(_at_)_schlund_(_dot_)_de>
- Date: Wed, 10 Jul 2002 18:49:30 +0200
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
- Organization: Schlund + Partner AG
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