Date: Fri, 25 Apr 2003 12:21:10 -0500 From: Glenn Johnson <gjohnson@srrc.ars.usda.gov> To: "Jacques A. Vidrine" <nectar@FreeBSD.org> Cc: current@FreeBSD.org Subject: Re: groups wrong on NIS clients Message-ID: <20030425172110.GA28012@node1.cluster.srrc.usda.gov> In-Reply-To: <20030425170322.GA85737@madman.celabo.org> References: <20030423210539.GA1348@node1.cluster.srrc.usda.gov> <20030423215038.GB22152@madman.celabo.org> <20030423220754.GA16387@node1.cluster.srrc.usda.gov> <20030423221120.GA22798@madman.celabo.org> <20030423221915.GA17543@node1.cluster.srrc.usda.gov> <20030424020829.GA73546@madman.celabo.org> <20030425155530.GA17160@node1.cluster.srrc.usda.gov> <20030425161942.GB77953@madman.celabo.org> <20030425165241.GB20846@node1.cluster.srrc.usda.gov> <20030425170322.GA85737@madman.celabo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@srrc.ars.usda.gov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030425172110.GA28012>