From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 22 13:02:16 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F6DF106566B for ; Tue, 22 Sep 2009 13:02:16 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206049004.chello.pl [87.206.49.4]) by mx1.freebsd.org (Postfix) with ESMTP id B24BA8FC0A for ; Tue, 22 Sep 2009 13:02:15 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 7CB2745CA6; Tue, 22 Sep 2009 15:02:14 +0200 (CEST) Received: from localhost (pdawidek.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id B3C6445684; Tue, 22 Sep 2009 15:02:09 +0200 (CEST) Date: Tue, 22 Sep 2009 15:02:12 +0200 From: Pawel Jakub Dawidek To: Giulio Ferro Message-ID: <20090922130212.GK6038@garage.freebsd.pl> References: <4AAB8AD0.5010302@zirakzigil.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CqfQkoYPE/jGoa5Q" Content-Disposition: inline In-Reply-To: <4AAB8AD0.5010302@zirakzigil.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-hackers@freebsd.org Subject: Re: ZFS group ownership X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 13:02:16 -0000 --CqfQkoYPE/jGoa5Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 12, 2009 at 01:49:36PM +0200, Giulio Ferro wrote: [...] > Now I try to do the same on a zfs partition on the same machine > This is what I see with ls > --------------------------------------------------------------- > ls -la > total 4 > drwxrwx--- 3 www www 4 Sep 12 13:43 . > drwxr-xr-x 4 root wheel 4 Sep 12 13:43 .. > drwxrwx--- 2 gferro gferro 2 Sep 12 13:43 asda > -rw-rw---- 1 gferro gferro 0 Sep 12 13:43 qweq > --------------------------------------------------------------- >=20 > As you can see, both file and directory belongs now to "gferro" and > not "www". This means that other users won't even be able to read > my files / dir, let alone modify them. >=20 > What I ask now is: is this a bug or a feature? This is a bug. I changed default ZFS behaviour (which is SYSV) to match BSD behaviour (ie. inherit group ownership from the parent directory), but it become broken during v6 -> v13 switch. Could you file PR for this, I should be able to fix it before 8.0-RELEASE. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --CqfQkoYPE/jGoa5Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFKuMrUForvXbEpPzQRAnliAJ9/BbGB/BEMQVV2cAsHGOsRfSktsACgnryx oLXI7zlzdymut0QzNfZ6rjc= =ktg1 -----END PGP SIGNATURE----- --CqfQkoYPE/jGoa5Q--