[NTLUG:Discuss] Distributing users via NIS

Cameron, Thomas Thomas.Cameron at bankofamerica.com
Wed Aug 4 01:42:02 CDT 2004


> -----Original Message-----
> From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
> Behalf Of Minh Duong
> Sent: Tuesday, August 03, 2004 8:52 PM
> To: discuss at ntlug.org
> Subject: [NTLUG:Discuss] Distributing users via NIS
> 
> 
> I have set up a NIS master and a NIS slave but can't
> seem to get new user that were created on the master
> to distribute to the slave.  I create the new user on
> the master server and then push it to slave.  I can
> ypcat to see the new users on both the master and
> slave but when I try to login as the user on the
> slave, it says that no user exists.  Am I missing
> something simple? Thanks in advance.

I am guessing you need to modify your /etc/nsswitch.conf file.  You should change the section that looks like this:

passwd:     files
shadow:     files
group:      files

to this:

passwd:     nis files
shadow:     nis files
group:      nis files

Basically you need to tell the system to ask NIS before it checks the local files (like /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow) for user account info.

Cheers,
Thomas Cameron, RHCE, CNE, MCSE, MCT
Assistant Vice President
Linux Design and Engineering
Bank of America
(972) 997-9641

The opinions expressed in this message to not necessarily reflect those of my employer, Bank of America.



More information about the Discuss mailing list