From owner-freebsd-fs@FreeBSD.ORG Fri Oct 10 11:51:48 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A40DBBCE for ; Fri, 10 Oct 2014 11:51:48 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 2AC87D15 for ; Fri, 10 Oct 2014 11:51:47 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqwEAHrHN1SDaFve/2dsb2JhbABgg2FYBIMCyEEKhnlUAoEeAXuEAwEBAQMBAQEBIAQnIAsFFhgCAg0HEgIpAQkmBggHBAEcBIgVCA2tZJUHAQEBAQEBAQMBAQEBAQEBAQEZgSyORwEBGzQHGIJfgVQFljuEDIQyPJApg36EEyEvB4EIOYECAQEB X-IronPort-AV: E=Sophos;i="5.04,691,1406606400"; d="scan'208";a="160524552" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 10 Oct 2014 07:51:40 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id B843DB40AC; Fri, 10 Oct 2014 07:51:40 -0400 (EDT) Date: Fri, 10 Oct 2014 07:51:40 -0400 (EDT) From: Rick Macklem To: =?utf-8?B?TG/Dr2M=?= Blot Message-ID: <1738545148.62071361.1412941900737.JavaMail.root@uoguelph.ca> In-Reply-To: <93722b83a95e50f3fae349ecc0cd254d@mail.unix-experience.fr> Subject: Re: NFSv4 nobody issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 11:51:48 -0000 Loic Blot wrote: > Hello @freebsd-fs, > i'm trying to do jail hosting over NFSv4 with ezjail and i'm > experimenting an issue that i can't resolve. When i extract > base.txz (with ezjail) or i set nobody user on a file, i have this > error: >=20 > chown nobody:nobody /usr/jails/fulljail/mnt/ > No name and/or group mapping for uid,gid:(65534,65534) > chown: /usr/jails/fulljail/mnt/: Operation not permitted >=20 > No problem if i set: > chown mysql:nobody /usr/jails/fulljail/mnt/ >=20 > Problem appears on all files. >=20 Do you have a user by the name of "nobody" in your password database? (NFSv4 uses names and not numbers on the wire, so no name-->no mapping and chown can't be done.) rick > On my ZFS+NFSv4 server i do a dataset, exported in NFS >=20 > /etc/exports: > V4: / >=20 > zfs get sharenfs pool/jails: > -network=3D10.99.99.0 -mask=3D255.255.255.0 -maproot=3Droot >=20 > nfsuserd and nfsv4_server_enable=3DYES on both client and server, plus > nfsbcd on client. >=20 > On the client here is the fstab entry > 10.99.99.99:/pool/jails /usr/jails nfs rw,nfsv4 0 0 >=20 > What i'm doing wrong ? >=20 > Thanks in advance > Regards, >=20 > Lo=C3=AFc Blot, > UNIX Systems, Network and Security Engineer > http://www.unix-experience.fr > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"