Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2000 22:15:17 -0400
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Ryan Thompson <ryan@sasknow.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: File creation using non-member group!
Message-ID:  <20000425221517.E13245@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <Pine.BSF.4.21.0004250942330.64330-100000@ren.sasknow.com>; from ryan@sasknow.com on Tue, Apr 25, 2000 at 09:58:09AM -0600
References:  <Pine.BSF.4.21.0004250942330.64330-100000@ren.sasknow.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 25, 2000 at 09:58:09AM -0600, Ryan Thompson wrote:
> 
> Hmm...
> 
> Just noticed that on one of my accounts the real gid of the user is not
> being used in file creation 

The gid of the user has nothing to do with the gid of a newly created
file. The gid of the file is the same as that of the directory it is
in. 

> (non-setgid/sticky directory, of course!)

Of course, since setgid is meaningless on a directory. That is how it
always works.

[snip]

> This behaviour persists at least as far back as 3.4-STABLE, through to
> yesterday's 4.0-STABLE. 

Yep. That is correct BSD-style behavior.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000425221517.E13245>