Re: Changing NGROUPS_MAX to 1024?

[email protected] (Michael van Elst) Wed, 15 Apr 2026 16:29:25 -0000 (UTC)
Newsgroups gmane.os.netbsd.devel.kernel
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Taylor R Campbell) writes:

>- login.conf could say which groups are distinguished
>- format of /etc/group could be modified in some clever way to tag
>  groups as distinguished
>- nsswitch.conf could say something about group order
>- new file /etc/nfsgroups could say which groups are distinguished
>- if not specifically configured with distinguished groups,
>  getgroupmembership could sort by gid like you suggested


My $0.02:

Nowadays less people use AUTH_SYS for NFS. So I wouldn't focus
on some highly refined handling of distinguished groups.

People also often rely on groups being a list, not some
unordered set. Sorting by gid may conflict with such
assumptions.

Prior art suggests that the 'distinguished groups' are
simply the first entries in the group list.