From owner-freebsd-hackers Thu Oct 28 2:24: 4 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from foobar.franken.de (foobar.franken.de [194.94.249.81]) by hub.freebsd.org (Postfix) with ESMTP id A9CFD14EED for ; Thu, 28 Oct 1999 02:23:59 -0700 (PDT) (envelope-from logix@foobar.franken.de) Received: (from logix@localhost) by foobar.franken.de (8.8.8/8.8.5) id LAA11418; Thu, 28 Oct 1999 11:23:31 +0200 (CEST) Message-ID: <19991028112331.A11345@foobar.franken.de> Date: Thu, 28 Oct 1999 11:23:31 +0200 From: Harold Gutch To: Graham Wheeler , hackers@FreeBSD.ORG Subject: Re: Weird /tmp behaviour References: <99102811072904.03657@cequrux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <99102811072904.03657@cequrux.com>; from Graham Wheeler on Thu, Oct 28, 1999 at 11:06:14AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 28, 1999 at 11:06:14AM +0200, Graham Wheeler wrote: > Hi all > > We've just noticed something strange here, that probably has a mundane > explanation but we can't figure it out. On a 2.2.8 FreeBSD system, if anyone > creates a file in /tmp, the group gets set to `bin'. The SGID bit is not set, > so that doesn't explain it. Does anyone know why this happens? Unfortunately > I don't have immediate access to any other releases to see if it is > release-specific. > That's what BSD just does - see open(2): When a new file is created it is given the group of the directory which contains it. The sticky bit on /tmp ensures that only the owner can delete and rename his files in this directory. bye, Harold -- Sleep is an abstinence syndrome wich occurs due to lack of caffein. Wed Mar 4 04:53:33 CET 1998 #unix, ircnet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message