There is a directory /test/test2/. Its owner is root and the group is test and the permission is drwxr-xr-x. I executed setfacl -m group:test:w ./ in that directory.
Now, as the user test whose groups includes test, if I run getfacl ./ in that directory, the output is,
# file: . # owner: root # group: test user::rwx group::r-x group:test:-w- mask::rwx other::r-x Now, if I execute touch test.txt, I get touch: cannot touch 'test.txt': Permission denied. Why is this so? Doesn't the setfacl -m add the permission to the chmod permission? I mean, I gave the test group write permission with setfacl, and since the group had r-x in traditional permission (that can be changed with chmod), doesn't this effectively give rwx to the test group?
I have tried namei -l /test/test2/, and the output was
f: /test/test2/ drwxr-xr-x root root / drwxr-xr-x root root test drwxrwxr-x root test test2