On 7/10/24 00:35, Pádraig Brady wrote:
OK so id(1) will always show all groups it knows about.
Then the warning message might be along the lines of:
"warning: User '%s' is a member of more groups than the current
system limit"
I also am not seeing the point of the proposed diagnostic. I daresay
most users would be more annoyed than usefully warned by the diagnostic;
I know I would.
The rare user concerned about being in "too many" groups can run
'getconf NGROUPS_MAX' and 'id -G | wc -w' and compare.