From owner-freebsd-security Sat Mar 23 11:46:49 2002 Delivered-To: freebsd-security@freebsd.org Received: from prometheus.vh.laserfence.net (prometheus.laserfence.net [196.44.73.116]) by hub.freebsd.org (Postfix) with ESMTP id 4A43037B400 for ; Sat, 23 Mar 2002 11:46:42 -0800 (PST) Received: from phoenix.vh.laserfence.net ([192.168.0.10]) by prometheus.vh.laserfence.net with esmtp (Exim 3.34 #1) id 16orT2-0002R2-00; Sat, 23 Mar 2002 21:46:20 +0200 Date: Sat, 23 Mar 2002 21:46:20 +0200 (SAST) From: Willie Viljoen X-X-Sender: will@phoenix.vh.laserfence.net To: Alex Popa Cc: security@freebsd.org Subject: Re: strange behaviour on /tmp In-Reply-To: <20020323214227.A37349@ldc.ro> Message-ID: <20020323214535.Y212-100000@phoenix.vh.laserfence.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The mode 1777 turns on the sticky bit, hence, any write to /tmp is created as the owner of /tmp. On Sat, 23 Mar 2002, Alex Popa wrote: > I have /tmp mode 1777, and mounted like this in fstab: > "/dev/something tmp ufs rw,nosuid,nodev 2 2" > > The thing I am noticing is that all files created under /tmp get > to be created as group wheel, no matter of the permissions of the > directory they are created in, or the user that creates them. > > Is this expected behaviour? > > I am running -STABLE, FreeBSD 4.5-STABLE #0: Thu Mar 7 22:11:39 EET 2002 > Cvsup was done two hours before the compilation time. > > Any ideas? > > ------------+------------------------------------------ > Alex Popa, | "Artificial Intelligence is > razor@ldc.ro| no match for Natural Stupidity" > ------------+------------------------------------------ > "It took the computing power of three C-64s to fly to the Moon. > It takes a 486 to run Windows 95. Something is wrong here." > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message > > > -- Willie Viljoen Private IT Consultant 214 Paul Kruger Avenue Universitas Bloemfontein 9321 South Africa +27 51 522 15 60, a/h +27 51 522 44 36 +27 82 404 03 27 will@laserfence.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message