NFSv4 shows all ZFS filesystems as being owned by root
David Brodbeck
gull at gull.us
Tue Aug 31 19:15:02 UTC 2010
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-- 1 brodbd brodbd 0 Aug 31 04:48 testfile
drwxr-xr-x 2 brodbd brodbd 2 Aug 31 04:48 testfs
On the client (RedHat Linux 5.4):
root at dryas:~# mount temp-nfs:/tank/test /test
root at dryas:~# ls -l /test
total 2
-rw-r--r-- 1 brodbd brodbd 0 Aug 31 04:48 testfile
drwxr-xr-x 2 root root 2 Aug 31 04:48 testfs
The same sequence works as expected when the server runs OpenSolaris.
Am I missing something?
More information about the freebsd-questions
mailing list