Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-07-2005, 01:04 PM   #1
Registered: Sep 2003
Location: Washington
Distribution: Kubuntu Dapper
Posts: 99

Rep: Reputation: 15
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.
Old 06-07-2005, 08:24 PM   #2
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
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.
Old 06-08-2005, 03:58 AM   #3
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
cannot add new group in RH jimberg51 Linux - General 1 06-08-2005 01:13 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
Can't seem to add to group fredws Mandriva 3 11-10-2003 04:09 PM
[alert] (22) Invalid argument : setgid : unable to set group id to Group 4294967295 Niraj Linux - Networking 1 12-13-2001 06:58 AM > Forums > Linux Forums > Linux - Security

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration