I have some users in a group called aa
and I need to give them the rights to write to a folder which is currently tomcat:tomcatdeploy
.
The straightforward way to do this is to add all the users to the tomcatdeploy
group, one-by-one.
Is it possible to say that members of group aa
are also automatically members of tomcatdeploy
by somehow adding the aa
group to the tomcatdeploy
group?
Or is that trying to push the UNIX permissions scheme too far?
Best Answer
You could use the
lid
command to get a list of users inaa
, and the loop over that list to add them totomcatdeploy
: