Asif Iqbal wrote:
How do I make sure any new file inherit the group permission from its
directory in ZFS?

I tried to add a non-trivial acl (index id 3), but the files
permissions are still following the users umask

# ls -dv folder/
drwxrwxr-x+  2 root     other          3 Mar  6 02:09 folder/
     0:owner@::deny
     1:owner@:list_directory/read_data/add_file/write_data/add_subdirectory
         /append_data/write_xattr/execute/write_attributes/write_acl
         /write_owner:allow
     2:group@::deny
     3:group:other:list_directory/read_data/add_file/write_data
         /add_subdirectory/append_data/write_xattr/write_attributes
         /write_acl/write_owner:file_inherit/dir_inherit:allow
     4:group@:list_directory/read_data/add_file/write_data/add_subdirectory
         /append_data/execute:allow
     5:everyone@:add_file/write_data/add_subdirectory/append_data/write_xattr
         /write_attributes/write_acl/write_owner:deny
     6:everyone@:list_directory/read_data/read_xattr/execute/read_attributes
         /read_acl/synchronize:allow

I made sure the zfs aclmode is set to passthrough


You will need aclinherit=passthrough for this to work.

Also, in order to bypass the creation mode you will need to inherit at least one of the abstract ACEs (owner@, group@ or everyone@). Those are the ACEs that affect the mode of the file.

  -Mark
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to