From owner-freebsd-questions@FreeBSD.ORG Tue Aug 31 19:15:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1E9910656B3 for ; Tue, 31 Aug 2010 19:15:01 +0000 (UTC) (envelope-from gull@gull.us) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id B3CA08FC0C for ; Tue, 31 Aug 2010 19:15:01 +0000 (UTC) Received: by qyk4 with SMTP id 4so7649911qyk.13 for ; Tue, 31 Aug 2010 12:15:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.222.76 with SMTP id if12mr4545616qcb.17.1283280760919; Tue, 31 Aug 2010 11:52:40 -0700 (PDT) Received: by 10.229.51.2 with HTTP; Tue, 31 Aug 2010 11:52:40 -0700 (PDT) X-Originating-IP: [64.81.163.112] Date: Tue, 31 Aug 2010 11:52:40 -0700 Message-ID: From: David Brodbeck To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: NFSv4 shows all ZFS filesystems as being owned by root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 19:15:02 -0000 When a ZFS filesystem mountpoint is owned by someone other than root, this is not depicted properly on NFSv4 clients: On the server (FreeBSD 8.1-RELEASE): temp-nfs# zfs create tank/test/testfs temp-nfs# chown brodbd:brodbd /tank/test/testfs temp-nfs# touch /tank/test/testfile temp-nfs# chown brodbd:brodbd /tank/test/testfile temp-nfs# ls -l /tank/test total 2 -rw-r--r--=A0 1 brodbd=A0 brodbd=A0 0 Aug 31 04:48 testfile drwxr-xr-x=A0 2 brodbd=A0 brodbd=A0 2 Aug 31 04:48 testfs On the client (RedHat Linux 5.4): root@dryas:~# mount temp-nfs:/tank/test /test root@dryas:~# ls -l /test total 2 -rw-r--r-- 1 brodbd brodbd 0 Aug 31 04:48 testfile drwxr-xr-x 2 root=A0=A0 root=A0=A0 2 Aug 31 04:48 testfs The same sequence works as expected when the server runs OpenSolaris. Am I missing something?