I have set the following permission using nfs4_sefacl
$ sudo nfs4_setfacl -a A:g:[email protected]:rwx /mnt/shared
$ sudo nfs4_getfacl /mnt/shared
# file: /mnt/shared
A:g:[email protected]:rwx
A::OWNER@:rwaDxtTnNcCy
A:g:GROUP@:rwaDxtTnNcy
A::EVERYONE@:rxtncy
Interestingly, the users of foo-group are able to create only files under /mnt/shared, but they are unable to create any directories under the folder.
I am new to nfs4_setfacl, may I know what am I missing? The volume is mounted as NFS4 volume correctly.
The permissions for the
foo-groupgroup need to be inherited. ACE (entry) forfoo-groupdoesn't have thedandfflags.Granted, the other ACEs also don't have these flags, but the NFS' file creation rules cover that case. On Linux, file creation would usually set the mode and not the ACL, and the mode would have reasonable behavior for the 3 regular principals - owner, group, and other.