ZFS & NFS

Florian Wagner florian at wagner-flo.net
Fri Mar 16 17:59:11 UTC 2012


On Fri, 16 Mar 2012 21:42:33 +0400
Slawa Olhovchenkov <slw at zxy.spb.ru> wrote:

> On Fri, Mar 16, 2012 at 06:32:43PM +0100, Patrick M. Hausen wrote:
> 
> > Hello,
> > 
> > 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:
> > > 
> > > # 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
> > 
> > 
> > Yes? This is expected behaviour of NFS. If you don't want that, try
> > 
> > 	-maproot=root
> > 
> > either in sharenfs option to zfs or /etc/exports, whichever it is
> > you are using.
> 
> hmm...
> nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
> 
> 65534 != 4294967294 (2^16-2 != 2^32-2)

And FreeBSD != Linux. Access from root does not get mapped to nobody.
See exports(5).


Regards
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120316/b7b2a5ef/signature.pgp


More information about the freebsd-stable mailing list