On Thu, 16 Sep 2004, Andreas wrote:

> I'm having some strange errors with group membership in samba-3.0.7 (not
> sure about other version).
>
> There is this user (marcia) belonging to over 200 groups. However, when she calls
> getgroups(2), only 64 are returned.


Maybe your OS limit is set to 64..

Try the following to verify your OS limit:

#include
#include

int main(int argc, char **argv)
{
long ngroups_max;
ngroups_max = sysconf(_SC_NGROUPS_MAX);
printf("ngroups: %ld\n", ngroups_max);
}

Regards
Henrik