Subject: bin/14172: meaningless error message when trying to login when you belong to >16 groups
To: None <gnats-bugs@gnats.netbsd.org>
From: None <manu@netbsd.org>
List: netbsd-bugs
Date: 10/06/2001 01:19:43
>Number:         14172
>Category:       bin
>Synopsis:       meaningless error message when trying to login when you belong to >16 groups
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 06 01:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Emmanuel Dreyfus
>Release:        NetBSD-1.5.2/i386
>Organization:
NetBSD
>Environment:
NetBSD mayday 1.5.2 NetBSD 1.5.2 (MAYDAY) #1: Mon Sep 10 17:22:20 CEST 2001     root@melancolie:/usr/src/sys/arch/i386/compile/MAYDAY i386
>Description:
Here is the error message I get when I try to log in to a system where
I belong to more than 16 groups, using ssh:

$ssh mayday
(here comes /etc/motd content)
unable to set user context: Invalid argument
Connection to mayday closed.
$ 

Login locally, we just get the last login date, then we are kicked out
In both cases, we get the following message in authlog:

Oct  6 10:11:03 mayday login: initgroups(jdoe,10120): Invalid argument

This message does not clearly explains the cause of the failure, which i that the user belongs to too much groups. Additionnaly, there is no message given to the user to indicate a possible cause of the failure.


>How-To-Repeat:
Add yourself to 17 groups and try to login on the system using ssh or locally on the console.
>Fix:
Not known yet
>Release-Note:
>Audit-Trail:
>Unformatted: