Thursday, February 22, 2007

Remove NIS+ From a Workstation

I've had to remove NIS+ from workstations on several occasions. Most of the time, the system is recovered to files. It is a fairly simple process.

Workstation or Server
# cp -p /etc/nsswitch.files /etc/nsswitch.conf
# /etc/init.d/rpc stop
# /etc/init.d/nscd stop
# rm -f /etc/.rootkey
# cd /var/nis
# rm -rf .*; rm -rf *
# /etc/init.d/rpc start OR perform a reboot

Alternate for workstation only:
# setenv PATH ${PATH}:/usr/lib/nis
# nisclient -r

Alternately, here is a link to Setup NIS+ server and populate its tables

No comments: