Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2003 15:14:40 +0000
From:      Ceri Davies <setantae@submonkey.net>
To:        Daniel Bye <dan@slightlystrange.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Wrong group on touch
Message-ID:  <20030220151440.GB3285@submonkey.net>
In-Reply-To: <20030220151118.GA77633@catflap.home.slightlystrange.org>
References:  <200302201437.h1KEbAa1000536@himinbjorg.ttsg.com> <20030220150128.GC40831@devil.stderror.at> <20030220151118.GA77633@catflap.home.slightlystrange.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 20, 2003 at 03:11:18PM +0000, Daniel Bye wrote:
> On Thu, Feb 20, 2003 at 04:01:28PM +0100, Toni Schmidbauer wrote:
> > On Thu, Feb 20, 2003 at 09:37:10AM -0500, Tuc wrote:
> > > -rw-r--r--  1 tuc  wheel  0 Feb 20 09:35 /tmp/tuc
> > 
> > pinhead@aeolus [/tmp] $ ls -ld /tmp/
> > drwxrwxrwt  14 root  wheel  1536 Feb 20 15:57 /tmp//
> > 
> > the sticky bit set for /tmp. thats the reason why all files have
> > gid wheel.
> 
> Really?  I thought setting the sgid bit on a directory caused this
> behaviour...

On Solaris, yes.

On BSD, no.
New files take on the same group ownership as the directory they are in.

Ceri

-- 
User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR?
Iniaes: Sure, I can accept all forms of payment.
                                           -- www.chatterboxchallenge.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?20030220151440.GB3285>