2002-03-04 13:02:58

by Yaroslav Buga

[permalink] [raw]
Subject: Group membership problem

Hi,

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?

Thanks guys in advance.
Yaroslav Buga.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


2002-03-04 15:20:55

by Jan Hudec

[permalink] [raw]
Subject: Re: Group membership problem

> 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' <[email protected]>