NFS Services Administrator's Guide

Configuring and Administering NIS+
Setting Up the NIS+ Namespace
Chapter 5 225
To Set Up an NIS+ Subdomain
Before you can set up a subdomain, the parent domain must be set up,
and its master server must be running. The master server for the parent
domain must have an entry in its hosts table for the master server of the
new subdomain.
1. Log in as root to the host that will be the master server for the
subdomain.
2. Set the PATH variable to include /usr/lib/nis. If you are running
the C shell, type the following command:
setenv PATH $PATH:/usr/lib/nis
If you are running the Bourne or Korn shell, type the following
commands:
PATH=$PATH:/usr/lib/nis
export PATH
3. Set up the host as a client in the parent domain. For example, if the
root domain is Wiz.Com., and you are setting up a subdomain called
Eng.Wiz.Com., make the host a client in the Wiz.Com. domain. See
β€œTo Set Up NIS+ Client Hosts” on page 220.
4. Type the following command if the new master server will not run in
NIS compatibility mode:
rpc.nisd
If the new master server will be required to serve NIS clients, type
the following command to run the server in NIS compatibility mode.
See β€œNIS Compatibility Mode” on page 210 for more information.
rpc.nisd -Y
5. Set the NISPLUS_SERVER variable to 1 in the
/etc/rc.config.d/namesvrs file:
NISPLUS_SERVER=1
If the host was previously an NIS server or client, set the
NIS_MASTER_SERVER, NIS_SLAVE_SERVER, and NIS_CLIENT variables
to 0.
6. Log in as root to the master server for the parent domain of the new
subdomain. For example, if the new subdomain will be called
Eng.Wiz.Com., log in as root to the master server for the Wiz.Com.
domain.