I need to create a hierarchy of UNIX groups. Something like below:
A
|\
| \
B c
|\
D e
|\
f g
...where A, B and D are UNIX groups and c,e,f and g are UNIX accounts that are members of those specific groups. I have googled a lot but it seems that this is not possible.
Currently, we have the following:
- Group A has members c.
- Group B has members e.
- Group D has members f,g.
UPDATE:
@John's post made me realize that I needed to re-frame my requirements to remove the ambiguity.
What I require is:
- Limit access to a directory only to members of group B (so B is group owner of that folder). As group D is a sub-group of B, members of D would be members of group B and have access to that directory as well.
But members of Group B needs to have the same rights as members of group A. (So if group A is a directory group owner then automatically group B is the directory group-owner).
By the way, this is a real-world problem where I have full control over group B and its members; and limited or no control over other groups and their members. So I cannot create new groups and give membership to members from group A or D.