NIS problems

Rick Stevens rstevens at vitalstream.com
Thu Jul 15 21:49:24 UTC 2004


Benjamin Hornberger wrote:
> Hi all,
> 
> I am having problems getting a NIS system to work on RHEL AS3 (both 
> client and server). I set up the server and the client, the client finds 
> the server (ypwhich -m gives all the maps, ypcat passwd shows the 
> correct password entries), and on the client I can finger users which 
> exist only on the NIS server. But such a user can't log in.
> 
> I would guess it has to do with the password shadowing, so that the 
> client would find the user but the user's password on the server is not 
> accepted by the client. Any hints?

Check the /etc/nsswitch.conf file and make sure you have THESE lines
uncommented:

	passwd:    db files nisplus nis
	shadow:    db files nisplus nis
	group:     db files nisplus nis

Make sure these lines are commented out:

	#passwd:     files
	#shadow:     files
	#group:      files

You want the first set to be active to check against the NIS server.
The second group will only check passwords and such against the local
files (which is the default if you did NOT specify NIS during the AS3
installation and added NIS later).
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
- Do not taunt the sysadmins, for they are subtle and quick to anger -
----------------------------------------------------------------------





More information about the Redhat-install-list mailing list