I want to set ACL for eg. /tmp/test folder like this:/tmp/test owner is user gaspar, member of group testgroup.User testuser is also a member of  group testgroup, and I want to give rwx permissions only to this user + owner (user gaspar).  Also I need to set the same acl for all newly created files/directories within /tmp/test automatically.When I setfacl like this:setfacl -Rdm u:testuser:rwx,g:testgroup:-,o::- /tmp/test/getfacl -p /tmp/test/ gives permissions:# file: /tmp/test/# owner: gaspar# group: testgroupuser::rwxgroup::---other::---default:user::rwxdefault:user:testuser:rwxdefault:group::---default:group:testgroup:---default:mask::rwxdefault:other::---And then user testuser has no permissions to /tmp/test folder.Can you please suggest where the problem is, what should I correct?When I set acl like this (without d option), user testuser has permissions as he should have, but obviously newly created files/directories don't have the same acl:setfacl -Rm u:testuser:rwx,g:testgroup:-,o::- /tmp/test/getfacl -p /tmp/test/# file: /tmp/test/# owner: gaspar# group: testgroupuser::rwxuser:testuser:rwxgroup::---group:testgroup:---mask::rwxother::---Any advice appreciated!
ACLs - the same acl's on all newly created files automatically
linux;permissions;acl