This section describes how to use the NIS+ directory administration commands to perform the following tasks:
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.
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.
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.
To remove the NIS+ namespace and return to using either NIS or /etc files for name services, follow these steps:
rootmaster# rm -f /etc/.rootkey
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.
rootmaster# nisrmdir -f domainname
Where domainname is the name of the root domain, for example, wiz.com.
rootmaster# stopsrc -g nisplus rootmaster# stopsrc -s keyserv
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+.
rootmaster# startsrc -s keyserv
rootmaster# rm -rf /var/nis/*
If you are running in NIS-compatibility mode, also enter the following:
rootmaster# rm -rf /var/yp/ypdomain