From owner-freebsd-stable@FreeBSD.ORG Thu May 1 16:24:22 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5025173B for ; Thu, 1 May 2014 16:24:22 +0000 (UTC) Received: from st11p02mm-asmtp002.mac.com (st11p02mm-asmtp002.mac.com [17.172.220.237]) by mx1.freebsd.org (Postfix) with ESMTP id 132971E82 for ; Thu, 1 May 2014 16:24:21 +0000 (UTC) MIME-version: 1.0 Received: from hobbes.nimgs.com ([184.188.181.148]) by st11p02mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0N4W004EULJZ4O40@st11p02mm-asmtp002.mac.com> for freebsd-stable@freebsd.org; Thu, 01 May 2014 16:24:01 +0000 (GMT) From: Craig Yoshioka Subject: problems with chown as root on nfs4 export Message-id: Date: Thu, 01 May 2014 09:23:58 -0700 To: freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.1874) X-MANTSH: 1TEIXWV4bG1oaGkdHB0lGUkdDRl5PWBoaHxEKTEMXGx0EGx0YBBIZBBscEBseGh8 aEQpYTRdLEQptfhcaEQpMWRcbGhsbEQpZSRcRClleF2NjeREKQ04XSxsbGmJCHx1SHWh1GXhzB x4bGxwYHhseEQpYXBcZBBoEHQdNSx0SSEkcTAUbHQQbHRgEEhkEGxwQGx4aHxsRCl5ZF2FHaEc SEQpDWhcbEh4EGxISBBsSGwQbHhIRCkJeFxsRCkJFF2hPY2VQAUNtenJaEQpCThdscGB5QB1iU mkaYhEKQkwXYH1zaEB/aH1SU2QRCkJsF2MZa0cSGWtSZE1gEQpCQBdvXmBHS3B4fwFuexEKQlg XaVAZX1kZZltzaVsRCnBnF2NGGG9CcHtDHWUeEQpwaxdoEmB6fGFoHxlDexEKcEsXYR1eE0lmQ HhJE20RCnBrF2Z5QxsdYURAaWh6EQpwSxduSE0aQEhyWQFNbBEKcGsXbFMSBWUcbx5re3gRCnB LF2V4fB5PXFNvfgF8EQpwaxdkH1gbTE9kSFpZRREKcEsXZX4ZfkQTQWJPBUcRCnBsF2QTcn1pR HlZHnJ9EQ== X-CLX-Spam: false X-CLX-Score: 1011 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.96,1.0.14,0.0.0000 definitions=2014-05-01_05:2014-04-30,2014-05-01,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1405010243 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Thu, 01 May 2014 16:24:22 -0000 I=92ve posted this same email to the linux NFS mailing list since I = think it might be client-side problem, but thought I might look for = input here as well. problem: when using chown as root on a nfs4 filesystem on newer linux = releases file owners get sets to nobody. the user type doesn=92t seem to matter (/etc/passwd, LDAP, = Samba4) setup: Server is FreeBSD 10 system with NFSv4 share. Server and clients are all configured with the same idmap domain Network users have consistent uid/gid on server and clients clients with older linux releases work OK (Ubuntu 12.04, CentOS 5 = and 6) clients with newer linux releases do not work ( Fedora 20, Ubuntu = 14.04, Mint 16 ) clues: 1. working and non-working systems get to the same fchownat() system = call with the same arguments (via strace). example (identical on working and non-working client): ... fchownat(AT_FDCWD, "/mnt/test", 11111, 4294967295, 0) =3D 0 close(1) =3D 0 close(2) =3D 0 close(4) =3D 0 exit_group(0) =3D ? +++ exited with 0 +++ 2. working system sends NFSV4 SETATTR request with owner set to: = matlab@nimgs.com and non-working as 11111 (via wireshark) 3. I can=92t rule out misconfiguration. but I=92ve configured as = identically as I could, and tried a lot of small vairations. these are = my current settings (the pipefs settings are the distro defaults)