From owner-freebsd-stable@FreeBSD.ORG Fri Mar 16 17:59:11 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFEE81065672 for ; Fri, 16 Mar 2012 17:59:11 +0000 (UTC) (envelope-from florian@wagner-flo.net) Received: from umbracor.wagner-flo.net (umbracor.wagner-flo.net [213.165.81.202]) by mx1.freebsd.org (Postfix) with ESMTP id 7DCDC8FC0C for ; Fri, 16 Mar 2012 17:59:11 +0000 (UTC) Received: from naclador.mos32.de (ppp-93-104-30-96.dynamic.mnet-online.de [93.104.30.96]) by umbracor.wagner-flo.net (Postfix) with ESMTPSA id 95CFE3C058F6 for ; Fri, 16 Mar 2012 18:51:44 +0100 (CET) Date: Fri, 16 Mar 2012 18:51:42 +0100 From: Florian Wagner To: freebsd-stable@freebsd.org Message-ID: <20120316185142.39943585@naclador.mos32.de> In-Reply-To: <20120316174233.GN52973@zxy.spb.ru> References: <20120316172006.GM97848@zxy.spb.ru> <20120316174233.GN52973@zxy.spb.ru> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.8; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/hlDcdLD4XM8WRbGt=Bet2b/"; protocol="application/pgp-signature" Subject: Re: ZFS & NFS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 17:59:11 -0000 --Sig_/hlDcdLD4XM8WRbGt=Bet2b/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 16 Mar 2012 21:42:33 +0400 Slawa Olhovchenkov wrote: > On Fri, Mar 16, 2012 at 06:32:43PM +0100, Patrick M. Hausen wrote: >=20 > > Hello, > >=20 > > Am 16.03.2012 um 18:20 schrieb Slawa Olhovchenkov: > > > I do NFSv3 export of ZFS. > > > root from remote host create files on ZFS witch uid 2^32-2: > > >=20 > > > # ls -l /usr/ports/packages32/ > > > total 6 > > > drwxr-xr-x 2 4294967294 wheel 5 Mar 17 00:57 All > > > drwxr-xr-x 2 4294967294 wheel 5 Mar 17 00:57 Latest > > > drwxr-xr-x 2 4294967294 wheel 3 Mar 17 00:52 archivers > > > drwxr-xr-x 2 4294967294 wheel 4 Mar 17 00:57 lang > >=20 > >=20 > > Yes? This is expected behaviour of NFS. If you don't want that, try > >=20 > > -maproot=3Droot > >=20 > > either in sharenfs option to zfs or /etc/exports, whichever it is > > you are using. >=20 > hmm... > nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin >=20 > 65534 !=3D 4294967294 (2^16-2 !=3D 2^32-2) And FreeBSD !=3D Linux. Access from root does not get mapped to nobody. See exports(5). Regards Florian --Sig_/hlDcdLD4XM8WRbGt=Bet2b/ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk9jfa8ACgkQLvW/2gp2pPzLsACgkjG11bcWQcHEWQKEXamohRNr EWMAnjBFvFDZZoCV/ndpL7CjHd7jvYCX =FsgQ -----END PGP SIGNATURE----- --Sig_/hlDcdLD4XM8WRbGt=Bet2b/--