Open hzheng opened 9 years ago
This is till an issue 7 years later.
It seems that in 7 years only 2 users have written in about it, and the solution is not clear. Dropping groups arbitrarily as hinted above may create issues that are more difficult to troubleshoot than this error message. For example, a program may depend on one of the silently dropped groups and may not work for unknown reasons. There's also a mention on the Python issue tracker.
In file options.py, line 1290 may throw
ValueError
(message: "too many groups") when a non-root user has groups more thanos.NGROUPS_MAX
(which is 16 in my mac machine).Actually, if we add one line
groups = groups[:os.NGROUPS_MAX]
just beforeos.setgroups(groups)
, the problem will be gone. (That doesn't necessarily mean this is the best way to solve it)