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?

有帮助吗?

解决方案

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

其他提示

Yes in Macosx ngroups is 16

Run "sysctl kern.ngroups"

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

许可以下: CC-BY-SA归因
不隶属于 apple.stackexchange
scroll top