I'm programming a Fuse file-system.
So far so normal, didn't encounter unsolvable problems (except performance).
However, I read the following articles:
http://linuxcommand.org/lts0070.php
http://www.perlfect.com/articles/chmod.shtml
http://mason.gmu.edu/~montecin/UNIXpermiss.htm
http://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions
http://www.tutorialspoint.com/unix/unix-file-permission.htm
https://kb.iu.edu/d/abdb
And I've got the following question:
Given a generic unix-permission-string -
I understand the string (after the first char) is partitioned into
groups of 3 (rwx) for
owner
owner_group
all/world/anyone
However, one of the articles explicitly states, 1 user can be in N groups.
So why the singular here for owner group (not groups) ?
What exactly is the owner group, if I (the file creator and therefore owner) am in several groups ?
Say I'm member of group A, group B, and group C.
Now I create a file somewhere.
Since the expression owner_group is singular and not plural,
to which group get's the owner_group permissions applied ?
A XOR B XOR C, or all of them, or none of them ?
If it gets applied to only one (as the singular implies), how is determined which group the rights are assigned to ?
I have the distinct feeling I don't really understand something here, or that I misunderstand the meaning of the term "owner group".