Get the latest tech news
Unix file access rwx permissions are simple but tricky
Intuitive expectation As users of Unix-like systems, we are quite used to everyday rwx access bits of a file system. They are simple and intuitive.
It’s turned out that decades ago the manual, perhaps, did not make it clear in my head that the logic is NOT the same as "owner bits are checked first, then group ones, and others after". The roots of this behavior could take us back in old good Unix times, and contemporary Unix-like operating systems still keep this logic: As a result, the amusing thing for me is that having long experience in programming I got the idea easier and quicker from the code than from its documentation — usually it’s the opposite.
Or read this on Hacker News