user and group management - how to emulate groups into groups in linux ?

user and group management - how to emulate groups into groups in linux ?

Post by jonajonajo » Thu, 23 Jan 2003 04:08:28


What is the best practice in organizing users in the following case :

A linux system will be used for a school.
There are students in IT, Math and Physics sections.
For each section there are 4 years of studies  : 1st year, 2nd year,
3rd year, 4th year.
Some programs can be used only by students in 2nd year, or only by
students in physics, etc.

I want to assign permissions on groups to these programs.

I want to add users into the following groups :

it_year1, it_year2, it_year3, it_year4,
math_year1, math_year2, math_year3, math_year4,
phys_year1, phys_year2, phys_year3, phys_year4.

and then create groups for each section and each year :

it_students, physics_students, math_students,
year1, year2, year3, year4.

The problem is that in linux it is not possible to add a group in
another group :
it_year1 is part of year1 and it_students.

A possible solution would be to add users directly into each group but
will not make user administration easy. It is by far easier to add a
user in one group and make him inherit
automatically other group membership than by adding a user in several
groups, with the risk of forgetting one.

So what is the best solution to this user/group management problem in
linux ?

Thanks in advance


1. cannot set up UMASK or groups so that users from one group cannot access other groups


First let me describe what I would like to set up to clarify things:


I would like to set up 3 groups, lets call them A, B, C. Users from A should
have access files created by users in B or C. Users in B or C cannot access
files created by users in A. Also users in B or C should not have access to
each others files.

How would I set up Umask to handle this? I've tried to create a primary
group for all and secondary groups to reflect the permissions I'm after, but
to no avail.

Any ideas?

Many thanks in advance.


2. Evidence eliminator program

3. LOCAL (TX): Announcing Linux Users Group in Midland/Odessa Texas (Permian Basin Linux Users Group)

4. Disabling unwanted services/question

5. grouping a group to a group?

6. SUMMARY: SS5 keep rebooting

7. Keeping groups, groups and groups straight



10. /etc/group groups inside of groups?

11. File group permissions - applicable to a particular group user only possible??

12. necessary groups in /etc/group, and necessary users in /usr/passwd

13. Limit on number of users in a group in /etc/group