From owner-freebsd-fs@FreeBSD.ORG Mon Dec 6 22:41:28 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 989C71065672 for ; Mon, 6 Dec 2010 22:41:28 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from mail.netmusician.org (dorian.netmusician.org [66.244.95.101]) by mx1.freebsd.org (Postfix) with ESMTP id 66D538FC1F for ; Mon, 6 Dec 2010 22:41:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netmusician.org (Postfix) with ESMTP id B8C13B8AD; Mon, 6 Dec 2010 17:41:27 -0500 (EST) X-Virus-Scanned: amavisd-new at netmusician.org Received: from mail.netmusician.org ([127.0.0.1]) by localhost (dorian.netmusician.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mx2PWOWCmlom; Mon, 6 Dec 2010 17:41:27 -0500 (EST) Received: from Shakti.local (c-71-201-100-167.hsd1.in.comcast.net [71.201.100.167]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.netmusician.org (Postfix) with ESMTPSA id 216F8B87A; Mon, 6 Dec 2010 17:41:27 -0500 (EST) Message-ID: <4CFD6693.7080100@netmusician.org> Date: Mon, 06 Dec 2010 17:41:23 -0500 From: Joe Auty User-Agent: Postbox 2.0.2 (Macintosh/20101025) MIME-Version: 1.0 To: Rick Macklem , freebsd-fs@freebsd.org References: <1124305635.1255931.1291670668724.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <1124305635.1255931.1291670668724.JavaMail.root@erie.cs.uoguelph.ca> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Migrating from NFSv3 to v4 - NFSv4 ACL/permission confusion X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 22:41:28 -0000 Rick Macklem wrote: >> Hello, >> >> This is possibly a more fundamental non-FreeBSD specific set of >> questions, but ultimately this is relevant to usage on FreeBSD, so... >> >> I'm fairly certain that NFSv4 is supported under Solaris 10/ZFS and >> FreeBSD/ZFS via the standard "share" binary or the sharenfs ZFS >> property, right? >> >> In mounting an NFS share on my FreeBSD test machine via the following: >> >> mount -t nfs -o rw,nfsv4 ipaddress:/share /path/to/share/directory >> >> I'm unable to change the permissions of any of these files via a >> standard chmod on the client (FreeBSD) side. What are NFSv4 ACLs, and >> is >> this in any way relevant to my problem here? Do ACLs need to be set in >> order to use a volume like I can an NFSv3 volume, which works just >> fine >> for me? >> > It might be worth capturing packets "tcpdump -s 0 -w xxx host " > while trying a "chmod" and seeing what goes over the wire. You can look > at it via wireshark or email me "xxx" and I can take a look. > > I don't know anything about ZFS, but you could try getfacl/setfacl on the > client and see what happens? > > Edward Napierala (trasz@freebsd.org) did commit a recent change w.r.t. > NFSv4 ACLs and I remember the discussion saying something like "after > this change, chmod no longer does anything once ACLs are enabled, but I > have no idea if it is relevant. > > Also, make sure "ls -l" is not reporting "nobody". If the user/group > name mapping isn't working, most Setattr Ops will fail. > Okay, Here is my dump command... The NFS host is 192.168.0.20: # tcpdump -s 0 -w dumpfile.txt host 192.168.0.20 tcpdump: listening on em0, link-type EN10MB (Ethernet), capture size 65535 bytes In NFS mount: # ls -l total 2 -rw-r--r-- 1 root wheel 0 Dec 4 23:19 blah -rw-r--r-- 1 root wheel 0 Dec 4 23:19 test2 -rw-r--r-- 1 root wheel 0 Dec 4 23:19 test3 # chown joe blah (no response) "joe" is indeed a local user on the NFS client side. This is not generating any tcpdump output though. # ls -l total 2 -rw-r--r-- 1 root wheel 0 Dec 4 23:19 blah -rw-r--r-- 1 root wheel 0 Dec 4 23:19 test2 -rw-r--r-- 1 root wheel 0 Dec 4 23:19 test3 No actual permission change I created these files as root, so that much is being recognized... > rick > -- Joe Auty, NetMusician NetMusician helps musicians, bands and artists create beautiful, professional, custom designed, career-essential websites that are easy to maintain and to integrate with popular social networks. www.netmusician.org joe@netmusician.org