Subject: Re: Problem logging in when in more than 16 groups
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-users
Date: 11/11/2003 00:01:32
On Tue, Nov 11, 2003 at 12:34:50AM +0100, Vincent Driessen wrote:
> Hi all,
> 
> Today, I added my username to my 17th group on my NetBSD (1.6.1_RC3)
> machine. But when I logged out and tried to log in again, it failed.
> Through ssh, I couldn't get a grip on the error message, but when I
> tried to su to it from root, I got this:
> 
> turkish#> su nvie
> Nov 11 00:27:40 turkish su: initgroups(nvie,1000): Invalid argument
> Nov 11 00:27:40 turkish su: initgroups(nvie,1000): Invalid argument
> su: setting user context: Invalid argument
> 
> All of this seemed to happen only when I'm in more than 16 groups. (16
> still goes fine.) The problem not only arises with the username 'nvie',
> but also with other users that I try to put in 17+ groups.
> 
> Is this a known problem with NetBSD 1.6? I'm asking since a friend of
> mine that uses -current does not have the problem.

NetBSD only supports 16 login groups, 'current' has been fixed to
ignore any other groups.

Maybe, one day, the maximum will be something other than a compile-time
kernel constant (IIRC, at least some utilities have to be built with
the same constant!)

	David

-- 
David Laight: david@l8s.co.uk