LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-25-2003, 01:20 AM   #1
geekgrl
LQ Newbie
 
Registered: Nov 2001
Location: Brisbane, Australia
Distribution: mandrake
Posts: 20

Rep: Reputation: 0
Question limit to nesting groups within groups?


I'm having a problem with groups. I've set up three groups,
groupA, groupB and groupC.

groupA has users adam, and ben as its members.
groupB has groupA, and users chris and doug as its members.
groupC has users eddie and freddie as its members.

However, a problem arises when I try to add groupB to groupC as a member.

If I log in as adam, and type the command groups, I see groupA and groupB, but not groupC.

Am I missing something? Am I doing something wrong? Is there something inherently wrong with nesting groups that much?

This is on a server running Mandrake 8.0, with a kernel patched to 2.4.18.

Any help is much appreciated.
 
Old 07-25-2003, 03:24 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
If you don't want to add separate group membership for all users, setGid their shared dir and make sure their umasks don't mess up, then you probably mean something like Groups members of other groups, using Linux ACL's. Seems using ACL's is a bit rough around the edges (if not totally unusable) as far as I can see.
 
Old 07-27-2003, 07:51 AM   #3
geekgrl
LQ Newbie
 
Registered: Nov 2001
Location: Brisbane, Australia
Distribution: mandrake
Posts: 20

Original Poster
Rep: Reputation: 0
Hrm. I did already look at the thread you mentioned, but it didnt seem to be the same problem as mine. I am actually listing users in each of the groups, but the groupC is supposed to have users as well as groupB in it, just like groupB has users as well as groupA in it, but it doesnt seem to work.

I really want to know if there's a limit to how much I can nest, ie., is it a "known bug" so to speak?

thanks.
 
Old 10-16-2007, 11:50 AM   #4
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 175

Rep: Reputation: 37
I don't think you can do that.

Traditionally, unix groups cannot be nested at all. If someone has changed the traditional behaviour on your distribution, I'd love to hear about it. This is something that would be a significant (and very difficult) enhancement.

On some distros (Red Hat linux comes to mind) of unix-derived systems, a unique group is created for each user, so that if you have a user named "bonehead" there will also be a group named "bonehead". This often confuses people and is probably not a good solution (although I understand why Red Hat did it). If you have a user with the same name as a group, that might explain why nesting seems to work in some circumstances.

If you are using the Shadow Suite, you can use the tools "pwck" and "grpck" to check your /etc/passwd and /etc/group files for errors. If you are using something more sophisticated (NIS, Hesiod, LDAP, whatever) you will have to consult whoever set up your user account provisioning system.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map Windows NT Groups to UNIX Groups - why? kenji1903 Linux - Networking 4 10-16-2007 11:52 AM
How to limit memory for users/groups? rubendarioportillo Linux - Newbie 1 09-30-2005 12:35 AM
limit on number of groups stolb001 Linux - General 1 07-08-2004 02:37 AM
limit on number of groups stolb001 Linux - General 0 07-07-2004 02:19 PM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 02:58 AM


All times are GMT -5. The time now is 04:11 AM.

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