Re: groups wrong on NIS clients

From: Jacques A. Vidrine <nectar_at_FreeBSD.org>
Date: Wed, 23 Apr 2003 16:50:38 -0500
On Wed, Apr 23, 2003 at 04:05:39PM -0500, Glenn Johnson wrote:
> With today's -current, the group entries for users are not being carried
> over to the NIS clients.  I rebuilt the NIS maps.
> 
> On the NIS server machine, which has a complete group file for the
> network, the output of 'groups' for my user account is:
> 
> glenn wheel kmem operator cluster
> 
> On the NIS client machines, I have +:*:: in the /etc/group file.  Here
> is the output of groups on an NIS client:
> 
> glenn
> 
> Here is the output of 'ypcat group' (edited to
> just show my account) on an NIS client.
> 
> kmem:*:2:glenn
> cluster:*:1000:glenn
> operator:*:5:root,glenn
> wheel:*:0:root,glenn
> 
> I know this is because of the recent NSS commits but what do I need to
> do to fix this.

Do you have an nsswitch.conf?   If so, what are the contents?

What is the output of `id -G' on both systems?

What is the output of (single line):

id -G | perl -e 'foreach (split(/\s+/, <>)) { print $_ .  "\t" . join(":", getgrgid($_), "\n"); }'

Cheers,
-- 
Jacques A. Vidrine <nectar_at_celabo.org>          http://www.celabo.org/
NTT/Verio SME          .     FreeBSD UNIX     .       Heimdal Kerberos
jvidrine_at_verio.net     .  nectar_at_FreeBSD.org  .          nectar_at_kth.se
Received on Wed Apr 23 2003 - 12:50:42 UTC

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