2
1
Let's say I am user bob in group users. There's this file:
-rw----r-- 1 root users 4 May 8 22:34 testfile
First question:
Why can't bob read the file as it's readable by others? Is it simply that if you are denied by group, then you are auto-blacklisted for others? I always assumed that the final 3 bits too precedence over user/group permission bits, guess I was wrong...
Second question:
How is this implemented? I suppose it's linked to the first query, but how does this work in relation to Access Control, is it related to how ACLs work / are queried? Just trying to understand how these 9 permission bits are actually implemented/used in Linux.
Thanks alot.
If bob is in the users group and users group has no read permission than bob has no read permission, even if bob has permission and others have permission, it's a real gotcha! To make bob read it, either remove bob from the group users or chmod g+r the file! – None – 2010-05-08T23:44:30.110