RE: getgroup invalid argument in /var/adm/messages
From: Schubert, John [NTWK SVCS] (jschub01_at_sprintspectrum.com)
Date: Wed, 23 Jul 2003 17:13:51 -0500 To: "Ramin Dousti" <firstname.lastname@example.org>
The only assigned groups I'm aware of are the GID assigned within /etc/group. I decided to take a look at the server's /etc/group file and was astounded. Their group file was thousands of lines long, with dozens blank or containing only a single name for a group. I have a script that we built for rogue systems which we were taking over sys admin duties that also have a group file out of control. So I will run this script and see if the nagging alarm goes away.
There were so many lines, I couldn't tell you how many groups are in the file. I would estimate 18-25.
On Wed, Jul 23, 2003 at 01:20:34PM -0500, Schubert, John [NTWK SVCS] wrote:
> To ask the next logical question: Where is the NGROUPS_MAX set and the number of groups the calling process is a member of? I'm a relative newby to programming, but would the calling process group list be found with as simple of a command as "groups root", since SSHd is called by root by /etc/rc2.d/S77sshd ??
And the question still remains, does sshd belong to many groups on your system?