The manual page
man 5 acl
is not very helpful in this case ... im network I found something but they do not explain in an "understandable" way to people (like me) who are completely fasting on this issue .... can someone explain to me once and for all these ACLs?.
1 Question
What is the "connection" (correlation) between normal permissions and ACLs permission? ... and how do they affect one another?
2 Question
What is the mask? Is it similar to "umask"? in any case ... what could it be used in ACLs?..and... (once again) ... what is the correlation with the "classic" mask (umask) with the ACL one? How does it behave if both are set?
- 2 Subquestion
I noticed that when the mask is set, the ls command shows a slightly different output:
-rw-rwx---+ 1 <user> <group> file.txt
The file has only "rw" in the group octet... why do showed the group set such as to "rwx" in the output? ... does that "rwx" also concern normal permissions or only acl ones?
3 Question
The reading of the permissions (by the kernel) takes place by analyzing FIRST the classic "normal" permissions and then moving on to the "secondary" (ACL) or in case of ACL the kernel reads the ACL FIRST? Logically, the actions taken by the kernel (or file system) should be these (and correct me if I'm wrong):
If a user sets a folder with permissions "0" in the octet "others", and another user (who is not even part of the group of the owner who created the folder) when trying to perform operations on the folder in question, are first analyzed the classic permissions ... since there is no "match" for the user, the kernel realizes that other permissions ("secondary") are set in this folder via the ACLs ... therefore the kernel also checks the permissions of the acl and if the user in question is "authorized" the kernel "lets go" ... is it correct?
4 question
what is the "others" class used for when it cannot be referred to any specific user? Since ACLs are intended to set access in a more granular way than normal permissions (and so in this case, setting this "others" class from ACLs seems really useless to me), in this case, aren't normal permissions enough to set the "others" class?
Thanks