[ Previous | Next | Table of Contents | Index | 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.

Note: 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 naming 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. To restore the previous environment, use nisclient -r.

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, run nisclient with the -r option, as follows:

clientmachine# nisclient -r

nisclient -r 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

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

Note: 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 naming purposes.

Removing the NIS+ Namespace

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

  1. Remove the /etc/.rootkey file from the root master.

    rootmaster# rm -f /etc/.rootkey
    
  2. Remove the groups_dir and org_dir subdirectories from the rootmaster 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).


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]