System Administration Guide: Naming and Directory Services (NIS+)

ProcedureHow to Remove NIS+ From a Server

  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. Stop the keyserver.


    client# svcadm disable /network/rpc/keyserv
  4. Stop the NIS+ service.

    This kills the rpc.nisd daemon and the nis_cachemgr.


    server# svcadm disable /network/rpc/nisplus:default
  5. Stop the name service cache (nscd).


    server# svcadm disable /system/name-service-cache:default
  6. Remove the /var/nis directory and files.


    rootmaster# rm -rf /var/nis/*