0

I'm changing the question because I believe I understood the command setfacl -d, but can't understand the following.

In the example bellow, I set "rw" permissions to user "dummy" for the directory "testacl". Why does it appear "read" permissions for the group.

group::r-x                      #effective:r--
$ setfacl -dm u:dummy:rw testacl 
$ getfacl testacl   

# file: testacl
# owner: carlos
# group: carlos
user::rwx
group::r-x
other::r-x
default:user::rwx
default:user:laffer:rw-
default:group::r-x
default:mask::rwx
default:other::r-x

$ touch testacl/file.txt
$ getfacl testacl/file.txt

# file: testacl/file.txt
# owner: carlos
# group: carlos
user::rw-
user:dummy:rw-
group::r-x                      #effective:r--
mask::rw-
other::r--
  • Hmm, slm's answer over there looks comprehensive enough to me. Is there something in particular you're missing? There's also the man page, which tells what default ACLs do – ilkkachu Oct 19 '19 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.