Might be a duplicate of (Are file permissions set in Unix/Linux effective in Windows or Any other OS?) but...
Let's assume we have a file (preferably in Linux/Unix OS but I believe this applies to windows as well).
I understand that file permissions are kept within the file itself, written ultimately on some of its bits.
Now let's assume I have set a read-only file (chmod 744) when another user connected on my "host" OS opens it and tries to write it, does the OS check the file's permission info (the actual bits in it) and decides what to do next?
If so, would a "customized" OS prevented from doing these checks be able to actually access it?