Discussion Locked

Disabling NIS on a client.

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an NIS Server and a couple of client workstations that bind to the NIS Server. I am trying to remove one of the workstations from the NIS network. I disabled the nsswitch.conf entries for NIS, but it still tries to do a ypbind upon bootup?
Any ideas?

7 replies

by jpittinger

In unixware the command to remove NIS from a maching is the command "pkgrm nis" I do not know what Linux's command is if that is what you want.

by dparkh01

Thanks for the reply, however, I did not find any command named pkgrmnis. I am using Solaris 2.7 environment.

Thanks anyways.

by ryttinch

If you are on a sun box, you can edit the /etc/init.d/rpc file toward the end, right before 'stop')

You would comment out the last set of commands where it says:

if [ -x /usr/lib/netsvc/yp/ypstart ]; then
/usr/lib/netsvc/yp/ypstart rpcstartfi

putting the pound sign in front of them.

by ghislain.levesque

here is the real way to do it:

NIS - TURN OFF
If you choose to turn off NIS on a network currently running it, you can disable
NIS after the next reboot by simply renaming the ypbind file to ypbind.orig, as follows:

% mv /usr/lib/netsvc/yp/ypbind /usr/lib/netsvc/yp/ypbind.orig

To disable NIS after the next reboot on a particular NIS slave or master, type the following on the server in question:

% mv /usr/lib/netsvc/yp/ypserv /usr/lib/netsvc/yp/ypserv.orig

To stop NIS immediately, type:

% /usr/lib/netsvc/yp/ypstop

have fun...

This discussion is closed to new replies.