Hi all,
I've been looking for information about this particular behaviour when creating a new file in a folder with default ACL:s.
Why does the user:: get rw- but the group:: get rwx permissions on the file ACL when the default ACL in the directory is set to rwx for both? The group:: gets the effective permission rw- through the mask, why?
I've come to understand there is some peculiar relation between the group permission the group:: ACL entry and the mask ACL entry. The mask is apparently recalculated if you add an ACL entry and that might inadvertantly change the group permission.
umask: 0027
folder getfacl output
# file: folder1/
# owner: user1
# group: group1
# flags: -s-
user::rwx
group::rwx
group:group2:r-x
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:group2:r-x
default:mask::rwx
defaultther::---
When I create a new file in this folder the file gets these ACL:s
# file: test.txt
# owner: user1
# group: group1
user::rw-
group::rwx #effective:rw-
group:group2:r-x #effective:r--
mask::rw-
other::---
I've been looking for information about this particular behaviour when creating a new file in a folder with default ACL:s.
Why does the user:: get rw- but the group:: get rwx permissions on the file ACL when the default ACL in the directory is set to rwx for both? The group:: gets the effective permission rw- through the mask, why?
I've come to understand there is some peculiar relation between the group permission the group:: ACL entry and the mask ACL entry. The mask is apparently recalculated if you add an ACL entry and that might inadvertantly change the group permission.
umask: 0027
folder getfacl output
# file: folder1/
# owner: user1
# group: group1
# flags: -s-
user::rwx
group::rwx
group:group2:r-x
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:group2:r-x
default:mask::rwx
defaultther::---
When I create a new file in this folder the file gets these ACL:s
# file: test.txt
# owner: user1
# group: group1
user::rw-
group::rwx #effective:rw-
group:group2:r-x #effective:r--
mask::rw-
other::---