From owner-freebsd-stable@FreeBSD.ORG Sat May 3 00:52:44 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 1F2D3C5B for ; Sat, 3 May 2014 00:52:44 +0000 (UTC) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id D25E21DE3 for ; Sat, 3 May 2014 00:52:43 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQEADcSY1ODaFve/2dsb2JhbABag1VXgme6NYZtUYEpdIIlAQEBBAEBASArIAsbGAICDRkCKQEJJgYIBwQBHASIIA2mBqN7F4EqjFcBARsBMweCb4FKBJZShBmRM4NPITGBBDk X-IronPort-AV: E=Sophos;i="4.97,975,1389762000"; d="scan'208";a="120094825" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 02 May 2014 20:52:37 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 268F3B3F51; Fri, 2 May 2014 20:52:37 -0400 (EDT) Date: Fri, 2 May 2014 20:52:37 -0400 (EDT) From: Rick Macklem To: Craig Yoshioka Message-ID: <349221658.1387859.1399078357152.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.202] 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: Sat, 03 May 2014 00:52:44 -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 Just to let everyone know. I just committed a patch (r265252) that fixes this default Linux client case. It makes the server either handle numeric uid/gid strings or return NFS4ERR_BADOWNER, depending on a sysctl called vfs.nfsd.enable_stringtouid. (rfc-3530bis is still a draft, but I don't think this patch will cause problems for older NFSv4 clients.) Either way the new Linux client handles this, since it switches to using @ when it sees NFS4ERR_BADOWNER. Thanks go to Craig for reporting and testing this. The patch should be MFC'd in 1 week. You can use the above fix on the Linux client side if you don't have the server patch. 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