I kind of know the answer, but what I want to know is the implementation details: Suppose root is logged in, and we have a file which has permissions 000. Then root can write and read that file. But my question is, how is this implemented. Does it somehow follow from the usual rules (owner, group, other; rwx) or does the system look at the user and say, ok, this is root, so he has privileged rights to read,write,execute any file?
I am asking this because I am writing a rest-api application which mimicks files and users from unix ( urls for example /galois/home/gauss are considered as unix directories, while for example urls as /galois/home/gauss/iris.pfa are considered as (executable) files in unix. For a little bit more details, see here the readme: https://github.com/orgesleka/unix-acl-sql ). And now my question is, if I can somehow deduce from the usual acl of unix that root is privileged, or if I have to "hard-code" this?