Page 1 of 1

aclmode chown and inheritance

Posted: 10 Sep 2015 12:15
by monty
Dear All,

The aclmode set passthrough. My problem is the effect of the chmod command. However the aclmode passthrough seems to be the best, the chmod utility is allways removing the inheritance flags.
For example when I make acl to a directory with the inheritance f and d flag,
for example: setfacl -m u:user:rwxaRc:fd: allow directory_name (other settings: inherit owner = yes, inherit permissions = yes, enable zfs acl, enabled zfs inheritance )
It works like a charm, any new files and folders inherit the permissions until a chmod command issued on that folder, which removes the inheritance flags.
Is there any way to disable this "side" effect?

thank you

Re: aclmode chown and inheritance

Posted: 10 Sep 2015 14:03
by Parkcomm
I'm not sure I understand the problem so I'll to to reflect it back to you.

You setfacl on the grandparent - you chmod the parent - the child does not inherit the ACL attribute of the grandparent? Or do you want the grandchild to inherit from the parent, or is the issue something else?

So admittedly I am confused, but could you use the setfacl command on the parent instead of a chmod?