Subject: Re: where are directory group permissions documented?
To: None <netbsd-help@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 06/07/2007 16:45:55
On Thu, 7 Jun 2007, Jeremy C. Reed wrote:
> What man page(s) discuss that when a file is created it inherits the group
> ID of its directory (instead of the gid of the creating process)?
I answer that myself. It is clearly documented in open(2) which is linked
from chmod(2).
Since it is not documented in same place, I assume disabling it is not
possible.
> Linux doesn't do that by default and calls it "BSD semantics". Linux can
> enable that with S_ISGID bit.
>
> Can it be disabled on a BSD system? In other words on NetBSD, how to make
> it so new files are automatically created with the group of creating
> process (instead of the group of the directory)? I am just curious and I
> don't need this.
Jeremy C. Reed