Solaris Naming Administration Guide

Removing NIS+ That Was Installed Using NIS+ Commands

To remove NIS+ from a client machine that was set up as an NIS+ client using the nisaddcred, domainname, and nisinit commands as described in Solaris Naming Setup and Configuration Guide, perform the following steps:

  1. Remove the .rootkey file.


    client# rm -f /etc/.rootkey
  2. Locate and kill the keyserv, nis_cachemgr, and nscd processes.


    client# ps -ef | grep keyserv
     root 714 1 67 16:34:44 ? keyserv
    client# kill -9 714
    client# ps -ef | grep nis_cachemgr
     root 123 1 67 16:34:44 ? nis_cachemgr
    client# kill -9 123
    client# ps -ef | grep nscd
     root 707 1 67 16:34:44 ? nscd
    client# kill -9 707
  3. Remove the /var/nis directory and files.


    clientmachine# rm -rf /var/nis/*