From owner-freebsd-questions@FreeBSD.ORG Wed Sep 16 19:31:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDDDF1065672 for ; Wed, 16 Sep 2009 19:31:07 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5623B8FC14 for ; Wed, 16 Sep 2009 19:31:07 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n8GJV2o2092144; Wed, 16 Sep 2009 20:31:03 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n8GJV2o2092144 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1253129463; bh=9RhwHjH3EpizPNC86D8GWqs1ti7TtPJhN8mg6+KFhOg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4AB13CF0.2060508@infracaninophile.co.uk>|Date:=20W ed,=2016=20Sep=202009=2020:30:56=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20090823)|MIME-Vers ion:=201.0|To:=20Artis=20Caune=20|CC:=20fre ebsd-questions@freebsd.org|Subject:=20Re:=20/tmp=20sticky=20bit=20 differences=20on=20FreeBSD=208|References:=20<9e20d71e0909161221i4 32edd65s9dac7e0da7c2fdc9@mail.gmail.com>|In-Reply-To:=20<9e20d71e0 909161221i432edd65s9dac7e0da7c2fdc9@mail.gmail.com>|X-Enigmail-Ver sion:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp- sha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A= 20boundary=3D"------------enigFFAE4470291D72CFF50012A1"; b=JuVOGeAqH/J1gwy7JiKvgOtcBNkAApcE8HBd7qyAopwQqg//+tcNk63tq24z7pOaG ojVW3Xv6oH6RkfeiU6vi+8HcNGKTXTxuZuL35qChYbIzt/tinX0AHvLBc2xYapVpw0 QTTrPRrIT0LcLoF0nqYEHjJxSgPsFnMXNUc2fTeM= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4AB13CF0.2060508@infracaninophile.co.uk> Date: Wed, 16 Sep 2009 20:30:56 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20090823) MIME-Version: 1.0 To: Artis Caune References: <9e20d71e0909161221i432edd65s9dac7e0da7c2fdc9@mail.gmail.com> In-Reply-To: <9e20d71e0909161221i432edd65s9dac7e0da7c2fdc9@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigFFAE4470291D72CFF50012A1" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: /tmp sticky bit differences on FreeBSD 8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2009 19:31:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFFAE4470291D72CFF50012A1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Artis Caune wrote: > Hi, >=20 > can someone point me to what has changed in file creation modes in > /tmp directory? >=20 > # FreeBSD 6, 7: > $ cd /tmp; id; touch testfile; mkdir testdir; ls -la > uid=3D65534(nobody) gid=3D65534(nobody) groups=3D65534(nobody) > drwxr-xr-x 2 nobody wheel 2 Sep 16 22:10 testdir > -rw-r--r-- 1 nobody wheel 0 Sep 16 22:10 testfile >=20 >=20 > # FreeBSD 8: > $ cd /tmp; id; touch test; ls -la test > uid=3D65534(nobody) gid=3D65534(nobody) groups=3D65534(nobody) > drwxr-xr-x 2 nobody nobody 2 Sep 16 22:12 testdir > -rw-r--r-- 1 nobody nobody 0 Sep 16 22:12 testfile >=20 >=20 > On FreeBSD 6,7 files are created with wheel group, but on 8 - with `gid= `. It seems that ZFS uses SysV group semantics (new files get the 1ary group= of the user unless the directory is set to SGID). UFS filesystems on 8.x=20 still behave in the expected BSD way (new files get the same group as the= directory unless the user is not a member of that group, when they get th= e users' 1ary group). There's a thread 'ZFS Group ownership' on this topic in freebsd-hackers@= =2E.. at the moment. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigFFAE4470291D72CFF50012A1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkqxPPYACgkQ8Mjk52CukIwu8wCfXv4q6lIF4B748A86p9Qhh2zO BA4An3PYN9Kf+uH/yPRThfB7CR0R+fAR =NMGj -----END PGP SIGNATURE----- --------------enigFFAE4470291D72CFF50012A1--