On Mon, 12 Oct 2009, Mark Shellenbaum wrote:

> Does it only fail under NFS or does it only fail when inheriting an ACL?

It only fails over NFS from a Linux client, locally it works fine, and from
a Solaris client it works fine. It also only seems to fail on directories,
files receive the correct group ownership:

$ uname -a
Linux damien 2.6.27-gentoo-r8 #7 SMP Tue May 26 13:15:08 PDT 2009 x86_64
Dual Core AMD Opteron(tm) Processor 280 AuthenticAMD GNU/Linux

$ id
uid=1005(henson) gid=1012(csupomona)

$ mount | grep henson
kyle.unx.csupomona.edu:/export/user/henson on /user/henson type nfs4
(rw,sec=krb5p,clientaddr=134.71.247.8,sloppy,addr=134.71.247.14)

$ ls -ld .
drwx--s--x 3 henson iit 4 Oct 12 15:58 .

$ touch foo
$ mkdir bar
$ ls -l

total 1
drwxr-sr-x 2 henson csupomona 2 Oct 12 15:58 bar
-rw-r--r-- 1 henson iit       0 Oct 12 15:58 foo

New directory group ownership is wrong whether the containing directory has
an inheritable ACL or not.

I only have ZFS filesystems exported right now, but I assume it would
behave the same for ufs. The underlying issue seems to be the Sun NFS
server expects the NFS client to apply the sgid bit itself and create the
new directory with the parent directory's group, while the Linux NFS client
expects the server to enforce the sgid bit.


-- 
Paul B. Henson  |  (909) 979-6361  |  http://www.csupomona.edu/~henson/
Operating Systems and Network Analyst  |  hen...@csupomona.edu
California State Polytechnic University  |  Pomona CA 91768
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to