- Joined
- Mar 6, 2014
- Messages
- 9,553
Some people play video games for entertainment. Some people feed pigeons for entertainment. What I'm doing here is more of the latter than the former.
Out of an abundance of pedantry, I want to try to document what goes wrong when we chmod a directory / file with ACLs.
Take an example of a complex ACL on a file:
Then
Have my ACLs been borked? Not really. The aces I really care about are still there:
In addition to this, what permissions are missing?
owner@ is missing "Dd", but (w) implies "Dd" so nothing is lost.
group@ is missing "ARC". The owner group can write and delete, but lacks the ability to modify permissions, xattrs, and attributes. Something is lost, but not a lot.
Users have to adjust their create / directory masks, but I wouldn't say that permissions are totally borken. In fact, if users are managing samba shares through explicit ACES (i.e
So... does anyone have a reproducible example of ZOMG ACLs are borken! :D
Out of an abundance of pedantry, I want to try to document what goes wrong when we chmod a directory / file with ACLs.
Take an example of a complex ACL on a file:
Code:
[root@rivendell] ~# getfacl /mnt/Tank/farts/ # file: /mnt/Tank/farts # owner: root # group: wheel owner@:rwxpDdaARWcCos:-----:allow group@:rwxpDdaARWcCos:-----:allow group:DOMAIN\Minions:r-x---a-R-c---:-----:allow group:DOMAIN\Domain Admins:rwxpDdaARWcCos:-----:allow
Then
chmod 770 /mnt/Tank/farts
Code:
[root@rivendell] ~# getfacl /mnt/Tank/farts/ # file: /mnt/Tank/farts # owner: root # group: wheel owner@:rwxp--aARWcCos:-----:allow group@:rwxp--a-R-c--s:-----:allow everyone@:------a-R-c--s:-----:allow group:DOMAIN\Minions:r-x---a-R-c---:-----:allow group:DOMAIN\Domain Admins:rwxpDdaARWcCos:-----:allow
Have my ACLs been borked? Not really. The aces I really care about are still there:
Code:
group:DOMAIN\Minions:r-x---a-R-c---:-----:allow group:DOMAIN\Domain Admins:rwxpDdaARWcCos:-----:allow
In addition to this, what permissions are missing?
owner@ is missing "Dd", but (w) implies "Dd" so nothing is lost.
group@ is missing "ARC". The owner group can write and delete, but lacks the ability to modify permissions, xattrs, and attributes. Something is lost, but not a lot.
Users have to adjust their create / directory masks, but I wouldn't say that permissions are totally borken. In fact, if users are managing samba shares through explicit ACES (i.e
group:DOMAIN\Domain Admins:rwxpDdaARWcCos:-----:allow
) it seems like they aren't effected at all by chmod operations.So... does anyone have a reproducible example of ZOMG ACLs are borken! :D
Last edited: