I have been watching this discussion thinking I might learn something, and 
today I did.  I did some looking for NGROUPS, and I eventually found that the 
number of groups allowed can be determined by sysconf().  This implies that it 
can be changed by a configuration parameter.  Perhaps the program below can 
help determine the maximum on the failing system.

/*
 * Display the number of groups allowed.
 */

#include <stdio.h>
#include <unistd.h>

int main( int argc, char **argv )
{
        long ngroups_max;

        ngroups_max = sysconf( _SC_NGROUPS_MAX );
        fprintf( stdout, "ngroups_max = %ld\n", ngroups_max );

        return 0;
}


-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of
Alan Altmark
Sent: Friday, September 14, 2007 5:11 AM
To: [email protected]
Subject: Re: LDAP & BUS ERROR


On Friday, 09/14/2007 at 06:40 EDT, "Goodwin, Derric"
<[EMAIL PROTECTED]> wrote:
> I think it is under 200 groups he belongs to. He is one of our security
people
> and I think he is a member of almost all groups. The weird thing is
other info
> security people (with large group memberships) can login and SU over
just fine.

The number of groups on setgroups() cannot exceed NGROUPS.  (And I don't
know where NGROUPS is set.)

Alan Altmark
z/VM Development
IBM Endicott

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to