I have two groups on my machine, groupa
and groupb
- in groupa
I have two users, user1a
and user2a
.
I would like to grant to members of groupa
the privs to access groupb
resources (run commands, view files etc). I think this probably involves using visudo
, but I may be wrong.
What I would like to achieve is the equivalent of:
usermod -a -G groupb user1a
usermod -a -G groupb user2a
but to do it at the group level so that if in future user3a
is added to groupa
, the user also automatically has the privs for groupb
.
As you may have guessed, Unix admin isn't my main area of operation !
How do I go about it?
Thanks in advance
Rich