0

In my earlier question, I got a response recommending the "newgrp" command. It diligently did the job of putting my desired group at the "top of the list" for the "id" command, but, why does it also complain about "too many groups"? What is the limit, and, where is the documentation about that?

1

From the source code of newgrp

if (ngrps == NGROUPS_MAX)
    warnx("too many groups");

and I think NGROUPS_MAX is defined as 16.

That is given in syslimits.h

1

Yes in Macosx ngroups is 16

Run "sysctl kern.ngroups"

And btw it cannot be changed with "sysctl -w "

  • Can't be changed as it is defined as a constant in the code – user151019 Mar 29 '14 at 20:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .