Date: Wed, 16 Sep 2009 20:30:56 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Artis Caune <artis.caune@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: /tmp sticky bit differences on FreeBSD 8 Message-ID: <4AB13CF0.2060508@infracaninophile.co.uk> In-Reply-To: <9e20d71e0909161221i432edd65s9dac7e0da7c2fdc9@mail.gmail.com> References: <9e20d71e0909161221i432edd65s9dac7e0da7c2fdc9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AB13CF0.2060508>