1832299 Members
1936 Online
110041 Solutions
New Discussion

removing a NIS client

 
SOLVED
Go to solution
Brian Taylor
Advisor

removing a NIS client

Greeting all... I am going to remove an HPUX 11.0 server from our NIS domain. I am just looking for some insite, maybe someone has removed a client and has some a story that may be helpful. Anything. Thanks gang!
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: removing a NIS client

To remove an NIS client you can do:

1) Edit the /etc/rc.config.d/namesvrs file and comment out, or null out, all variables having to do with NIS. Make sure you have the NIS_SLAVE_SERVER variable set to 0 (zero) so that the daemons don't start on reboot.

2) Check the /etc/passwd file and take out the +::*:* entry and make sure all users that are going to log into the system have a entry in the local passwd file.

3) Same as #2 for the /etc/group file

4) Check /etc/nsswitch.conf and make sure NIS is taken out of the rules there.

I'm sure there's other things to check, but that's all I can think of right now.

Patrick
Sachin Patel
Honored Contributor

Re: removing a NIS client

Hi Brian,
It is very simple. you just vi /etc/rc.config.d/namesvrs
NIS_SLAVE_SERVER="0"

/sbin/init.d/nis.server stop

Don?t forget to remove your secondary server?s name from your master servers database "ypservers"

I never had trouble-removing servers.

Sachin
Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor

Re: removing a NIS client

Hi Brian,

Patrick has covered most of the bases but you
should also check your /etc/services file for entries that were defined in NIS (ypcat services) but are not defined in your local /etc/services files.

Actually the same applies for protocols, services, networks, netgroup, & rpc but these are very seldom changed.

Of course, if you are not running DNS then you will need hostname entries in /etc/hosts.

Regards, Clay
If it ain't broke, I can fix that.