Re: groups wrong on NIS clients

From: Glenn Johnson <gjohnson_at_srrc.ars.usda.gov>
Date: Fri, 25 Apr 2003 12:21:10 -0500
On Fri, Apr 25, 2003 at 12:03:24PM -0500, Jacques A. Vidrine wrote:

> On Fri, Apr 25, 2003 at 11:52:41AM -0500, Glenn Johnson wrote:
>
> > as root:
> > ~~~~~~~~~~~~~~~~~~~~~~
> > as user glenn:
> > ~~~~~~~~~~~~~~~~~~~~~~
> > >    /etc/nsswitch.conf
> > >      group: files nis
> > as root:
> > ~~~~~~~~~~~~~~~~~~~~~~
> > as user glenn:
> > ~~~~~~~~~~~~~~~~~~~~~~
>
> That all looks good.  Your NIS groups entries were listed in all
> cases.  So it appears that something is screwing up in sshd's
> environment.
>
> Hmm, at least I can reproduce this now by using the base system
> /usr/sbin/sshd.  Now I have a chance of tracking it down! :-)
> 
> > I also ran the groups command with and without the nsswitch.conf
> > file.
> >
> > without nsswitch.conf:
> >
> > glenn
> >
> > with nsswitch.conf:
> >
> > glenn kmem cluster operator wheel
>
> OK, now _that_ is surprising!  We've already seen that the list of
> groups are the same in either configuration.  Or maybe, did you log
> off and back in between those two `group' commands?

Yes.

If I ssh into the host and there is _no_ nsswitch.conf file present then
the output of groups is just my user group.  If I ssh into the host
and the nsswitch.conf file _is_ present then the output of the groups
command is the correct listing of the groups I am a member of.

-- 
Glenn Johnson
USDA, ARS, SRRC			 Phone: (504) 286-4252
New Orleans, LA 70124		e-mail: gjohnson_at_srrc.ars.usda.gov
Received on Fri Apr 25 2003 - 08:21:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:05 UTC