Solaris Naming Administration Guide

Removing NIS+ From a Server

This section describes how to remove NIS+ from an NIS+ server.

Keep in mind that removing NIS+ from a server does not remove the NIS+ name service from your network. See "Removing the NIS+ Namespace" for information on removing the NIS+ name service from a network and returning to either NIS or /etc files for naming purposes.


Note -

You can replace a machine that you are using as an NIS+ server with another machine. See "Replacing Server Machines".


To remove NIS+ from a server, follow these steps:

  1. Perform the steps necessary to remove NIS+ from a client.

    An NIS+ server is also an NIS+ client. This means that you must first remove the client-related part of NIS+. You can use nisclient -r as described in "Removing NIS+ That Was Installed Using nisclient" or the NIS+ command set as described in "Removing NIS+ That Was Installed Using NIS+ Commands".

  2. Remove the server's groups_dir and org_dir directories.


    server# nisrmdir -f groups_dir.domainname
    server# nisrmdir -f org_dir.domainname
    
  3. Locate and kill the keyserv, rpc.nisd, nis_cachemgr, and nscd processes on the server.


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


    rootmaster# rm -rf /var/nis/*