LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Add a group to a group? (http://www.linuxquestions.org/questions/linux-security-4/add-a-group-to-a-group-331277/)

Temujin_12 06-07-2005 02:04 PM

Add a group to a group?
 
I have a server set up with strict security permissions. There are several groups with several different users within them. Potentially there could be dozens of groups with even more users.

I also have an 'admin' group. I want to give this group permission to modify any file that has read and write group permissions set no matter what group owns the file. The users in the 'admin' group change occasionally so I don't want to go through all of the groups and add/remove admin users whenever a new admin user comes or goes.

Is there a way to simply add the admin group to be part of another group? If not, is there an automated way to reach the desired result?

Thanks for the help.

sigsegv 06-07-2005 09:24 PM

You can't have a group be a member of another group. Users only.

As for an automated way to do this -- sed or perl or grep/awk or whatever. There are many ways to punch that monkey.

bramhastra 06-08-2005 04:58 AM

it wuld be easier writing down a script . Write down a script which removes all entries of the previous person name you supply and adds the new one


All times are GMT -5. The time now is 01:21 AM.