From owner-freebsd-stable@FreeBSD.ORG Fri May 2 12:51:05 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6353AF1 for ; Fri, 2 May 2014 12:51:05 +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 7BFF21476 for ; Fri, 2 May 2014 12:51:04 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQEADIWY1ODaFve/2dsb2JhbABag1VXgme6NYZtUYEpdIIlAQEBBAEBASArIAsbGAICDRkCKQEJJgYIBwQBHASIIA2mB6N8F4EqjEYQAgEbATMHgm+BSgSWUoQZkTODTyExgT0 X-IronPort-AV: E=Sophos;i="4.97,972,1389762000"; d="scan'208";a="119538900" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 02 May 2014 08:50:58 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 2ECBBB3F12; Fri, 2 May 2014 08:50:58 -0400 (EDT) Date: Fri, 2 May 2014 08:50:58 -0400 (EDT) From: Rick Macklem To: Craig Yoshioka Message-ID: <1289655788.875148.1399035058180.JavaMail.root@uoguelph.ca> In-Reply-To: <892DB38A-0F20-439F-828A-27F195C8EEBD@me.com> Subject: Re: problems with chown as root on nfs4 export MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 7.2.1_GA_2790 (ZimbraWebClient - FF3.0 (Win)/7.2.1_GA_2790) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 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, 02 May 2014 12:51:05 -0000 Craig Yoshioka wrote: >=20 > > From what I was told, trying a uid string is only a fallback > > scenario for the client. Instead, it turns out root (uid 0) was > > improperly triggering a conditional that mapped it to nobody on > > maproot exports. I just tried a fixed version and it works now. >=20 > Nevermind, I spoke too soon. I hadn=E2=80=99t properly cleared the effec= t of > setting: >=20 > echo N >/sys/module/nfs/parameters/nfs4_disable_idmapping >=20 > but just to confirm, setting the above in linux clients does cause > their SETATTR calls to pass the username instead of the uid. > Unfortunately, this setting is not the default. >=20 Could you please test the attached patch? After booting a kernel with the patch, you will need to: sysctl vfs.nfsd.enable_stringtouid=3D1 With the patch + sysctl, the server should accept the numeric string. If you can't test the patch, please email me, since I need to get it tested quickly to get it in 9.3. Thanks for reporting this, rick >=20 > >>=20 > >>>=20 > >>>=20 > >>> 3. I can=E2=80=99t rule out misconfiguration. but I=E2=80=99ve confi= gured as > >>> identically as I could, and tried a lot of small vairations. > >>> these > >>> are my current settings (the pipefs settings are the distro > >>> defaults) > >>>=20 > >>> _______________________________________________ > >>> freebsd-stable@freebsd.org mailing list > >>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable > >>> To unsubscribe, send any mail to > >>> "freebsd-stable-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" >=20