Re: getgroup invalid argument in /var/adm/messages

From: Ben Lindstrom (mouring_at_etoh.eviladmin.org)
Date: 07/23/03

  • Next message: Schubert, John [NTWK SVCS]: "RE: getgroup invalid argument in /var/adm/messages"
    Date: Wed, 23 Jul 2003 16:20:42 -0500 (CDT)
    To: Ramin Dousti <ramin@cannon.eng.us.uu.net>
    
    

    OpenSSH_3.2.3 (p1)

    3.2.3p1 is rather old. Please upgrade to the current 3.6.1p2 and see if
    this still happens.

    - Ben

    On Wed, 23 Jul 2003, Ramin Dousti wrote:

    > 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
    >


  • Next message: Schubert, John [NTWK SVCS]: "RE: getgroup invalid argument in /var/adm/messages"