1833365 Members
3423 Online
110052 Solutions
New Discussion

NIS Client

 
SOLVED
Go to solution
Manoj Sivan
Regular Advisor

NIS Client

Hi Admins,

We are having two NIS servers.

1. Server A/Slave
2. Server B

We deconfigured the slave from Server A and attached to Server B as a NIS client.If i do a ypwhich its pointing to Server B.

The problem i am facing is, the NIS user in Server B is not able to login to the new NIS client. Which all are the files i need to edit for this. /var/yp//netgroup is having new client name.

Please help

Regards

Manoj
5 REPLIES 5
SupraTeam_1
Regular Advisor

Re: NIS Client

Hi,
Have you more example because i can't unbdesrtand your problem .

Rick Garland
Honored Contributor
Solution

Re: NIS Client

Couple of tasks.

Do a ypset command to bind the client to the new NIS server system.

If you do a 'ypcat -k ypservers' command, do you still see both servers in the list? If so, you need to remake the ypserver map to remove the 1 server. This can be accomplished by converting the map to an ASCII file, modifying it, then remake back to the map file.
Mark Ellzey
Valued Contributor

Re: NIS Client

Manoj,

Be sure that both NIS_SERVER=1 and NIS_CLIENT=1 are set in /etc/rc.config.d/namesvrs on ServerB. Then, if you are sure the NIS server is running on ServerB, execute /sbin/init.d/nis_client start on ServerB.

As Rick said, you will have to bind the NIS clients to the new server using ypset. You may want to run ypinit -c on the client machines.

Regards,
Mark
V. Nyga
Honored Contributor

Re: NIS Client

Hi,

you have to add a '+' at the end of these files:
/etc/hosts
/etc/passwd
/etc/group

and you have to delete all double configured users from the client.

And you have to do a 'ypmake' from the new server.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Manoj Sivan
Regular Advisor

Re: NIS Client

Hi All,

Thanks a lot for the help. What i skipped is to do a ypinit at client i guess. Anyway yesterday the client rebooted because of some reason and now i am able to login from the said cleint :-))

Anyways thanks a lot for the information provided.( I know reboot was not a solution ;-) )

Regards

Manoj