[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Network Information Services (NIS and NIS+) Guide

Removing NIS+

This section describes how to use the NIS+ directory administration commands to perform the following tasks:

Removing NIS+ From a Client Machine

This section describes how to remove NIS+ from a client machine. Keep in mind that removing NIS+ from a client machine 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 name purposes.

To remove NIS+ from a client machine that was set up as an NIS+ client using the nisaddcred, domainname, and nisinit commands, use nisclient -D.

Note: The nisclient -D command does not restore the previous environment as nisclient -r does.

Restoring to Previous Network Environment

To remove NIS+ from a client machine that was set up as an NIS+ client using the nisclient -i script, simply run nisclient with the -r option:

clientmachine# nisclient -r

nisclient -r simply undoes the most recent iteration of nisclient -i; it restores the previous naming system used by the client, such as NIS or /etc files.

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.

To remove NIS+ from a server, use nisserver -D.

Removing the NIS+ Namespace

To remove the NIS+ namespace and return to using either NIS or /etc files for name services, follow these steps:

  1. Remove the .rootkey file from the root master.
    rootmaster# rm -f /etc/.rootkey
  2. Remove the groups_dir and org_dir subdirectories from the root master root domain.
    rootmaster# nisrmdir -f groups_dir.domainname
    rootmaster# nisrmdir -f org_dir.domainname

    Where domainname is the name of the root domain, for example, wiz.com.

  3. Remove the root domain.
    rootmaster# nisrmdir -f domainname

    Where domainname is the name of the root domain, for example, wiz.com.

  4. Locate and kill the keyserv, rpc.nisd, and nis_cachemgr processes.
    rootmaster# stopsrc -g nisplus
    rootmaster# stopsrc -s keyserv
  5. Create a new domain.
    rootmaster# chypdom [-I|-B|-N] name

    Where name is the name of the new domain; for example, the name of the domain before you installed NIS+.

  6. Restart the keyserv process.
    rootmaster# startsrc -s keyserv
  7. Remove the /var/nis directory and files.
    rootmaster# rm -rf /var/nis/*

    If you are running in NIS-compatibility mode, also enter the following:

    rootmaster# rm -rf /var/yp/ypdomain
  8. Now restart your other name service (NIS or /etc files).


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]