NIS Setup Issue

Matthew Galgoci mgalgoci at redhat.com
Thu Feb 8 16:06:06 UTC 2007


> Hello all,
>
> I'm trying to set up a test NIS domain with a single server and a single
> client.  As far as I can tell, the setup was performed properly.  On
> either the client or the server, I can run 'ypwhich' and they return the
> server.  I can run 'ypcat passwd' and it will return my NIS passwd map.
>
>
> However, if I try to 'su' to one of my NIS users on either machine, it
> returns 'No such user'.  I can't log in using any of my NIS users
> either.
>
> nsswitch.conf has been set to 'nis files' for passwd, shadow, and
> groups.
>
> Clearly I've missed some setting somewhere, but I can't figure out
> where.  Any ideas?

You might have a negative passwd or group entry cached via nscd. You can
invalidate the lookup cache by doing "nscd -i passwd" followed by
"nscd -i group". Then do getent passwd $username and see if the lookup
succeeds.

-- 
Matthew Galgoci
GIS Production Operations
Red Hat, Inc
919.754.3700 x44155




More information about the redhat-sysadmin-list mailing list