Re: getgroup invalid argument in /var/adm/messages
From: Ramin Dousti (ramin_at_cannon.eng.us.uu.net)
Date: 07/23/03
- Previous message: Greg Wooledge: "Re: ssh configuration problem"
- In reply to: Schubert, John [NTWK SVCS]: "getgroup invalid argument in /var/adm/messages"
- Next in thread: Ben Lindstrom: "Re: getgroup invalid argument in /var/adm/messages"
- Reply: Ben Lindstrom: "Re: getgroup invalid argument in /var/adm/messages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 23 Jul 2003 13:47:40 -0400 To: "Schubert, John [NTWK SVCS]" <jschub01@sprintspectrum.com>
It looks like the message is coming from:
uidswap.c line 70:
saved_egroupslen = getgroups(NGROUPS_MAX, saved_egroups);
if (saved_egroupslen < 0)
fatal("getgroups: %.100s", strerror(errno));
From the man pages on getgrroups:
...
getgroups() will fail if:
EINVAL The value of gidsetsize is non-zero and less
than the number of supplementary group IDs
set for the calling process.
...
It means that the calling process (sshd) belongs to more groups
than NGROUPS_MAX is defined for. Is that the case?
Ramin
On Wed, Jul 23, 2003 at 10:55:43AM -0500, Schubert, John [NTWK SVCS] wrote:
> Hello,
> I have an error message popping up in the /var/adm/messages file for sshd that reads:
> Jul 19 04:31:35 omp sshd[21167]: [ID 800047 auth.crit] fatal: getgroups: Invalid
> argument
> Jul 19 05:33:19 omp sshd[15334]: [ID 800047 auth.crit] fatal: getgroups: Invalid
> argument
> and continues to repeat with irregularity. I have searched through the Man pages for SSH, SSHd, performed a Google search on the context of the error, and searched the list archives here. I also looked through the sshd_config file for anything out of the ordinary, and it looked ok. I have about 350 machines running SSHd, and I checked a handful of the others and they did not have the errors listed above.
> Any ideas on what is happening or where I can look? SSHd is running and allowing people to log in. This is OpenSSH_3.2.3 (p1) installed on a Sun Netra T1120 server running Solaris 8.
> Thanks,
> John
- Previous message: Greg Wooledge: "Re: ssh configuration problem"
- In reply to: Schubert, John [NTWK SVCS]: "getgroup invalid argument in /var/adm/messages"
- Next in thread: Ben Lindstrom: "Re: getgroup invalid argument in /var/adm/messages"
- Reply: Ben Lindstrom: "Re: getgroup invalid argument in /var/adm/messages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]