Re: Group membership problem

From: Jan Hudec (bulb@ucw.cz)
Date: Mon Mar 04 2002 - 10:20:31 EST


> I have Slackware 7.1 with 2.4.16 kernel. And I have a user who is a member of
> a number of groups. Linux can't grant access to the user if the group's
> number he is member of is more than 32. For example if he is member of 32
> groups - everything is O.K. , but when I make him a member of the 33-rd group
> he will not be granted access to resource which is owned by that group.
> Is there any limit in Linux for the number of groups to be member of?
> And how can I solve that problem?

Unfortunately there is. Secondary group list is soteed in task_struct in an
array. IIRC it's called groups and declared with NGROUPS elements, which is in
turn #defined 32. You can try and change it in the source.

--------------------------------------------------------------------------------
                                                  - Jan Hudec `Bulb' <bulb@ucw.cz>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:33 EST