linux - ACLs - the same acl's on all newly created files automatically -
i want set acl eg. /tmp/test folder this:
/tmp/test owner user "gaspar", member of group "testgroup". user "testuser" member of group "testgroup", , want give rwx permissions user + owner (user "gaspar"). need set same acl newly created files/directories within /tmp/test automatically.
when setfacl this:
setfacl -rdm u:testuser:rwx,g:testgroup:-,o::- /tmp/test/
getfacl -p /tmp/test/
gives permissions:
# file: /tmp/test/ # owner: gaspar # group: testgroup user::rwx group::--- other::--- default:user::rwx default:user:testuser:rwx default:group::--- default:group:testgroup:--- default:mask::rwx default:other::---
and user "testuser" has no permissions /tmp/test folder. can please suggest problem is, should correct?
when set acl (without "d" option), user "testuser" has permissions should have, newly created files/directories don't have same acl:
setfacl -rm u:testuser:rwx,g:testgroup:-,o::- /tmp/test/ getfacl -p /tmp/test/ # file: /tmp/test/ # owner: gaspar # group: testgroup user::rwx user:testuser:rwx group::--- group:testgroup:--- mask::rwx other::---
any advice appreciated!
Comments
Post a Comment