NFS Services Administrator's Guide

Configuring and Administering NIS+
Setting Up the NIS+ Namespace
Chapter 5220
To Set Up NIS+ Client Hosts
Before you set up an NIS+ client host, the master server must be set up
and running, and the client must have an entry in the NIS+ hosts table
on the master server. Also, make sure no one is using the client host. The
nisclient script copies the /etc/nsswitch.nisplus file to
/etc/nsswitch.conf. This may render the host unusable until NIS+ is
operational.
1. Log into the master server and issue the following command to
determine whether the client host has NIS+ credentials in the
domain’s cred table:
nisgrep client_hostname cred.org_dir.domainname
The nispopulate script creates credentials for every host that is in
the /etc/hosts file or NIS hosts map when the command is run. If
the client host did not have a hosts entry when nispopulate was
run, it will not have credentials in the cred table.
2. If the nisgrep command returns nothing, issue the following
command on the master server to add a credential for the client host:
nisclient -co client_hostname
When prompted for a password, type the default password, nisplus.
3. Log in as root to the host that will be the NIS+ client.
4. Issue the following command to set the NIS+ domain name:
/usr/bin/domainname domainname
5. If the host was previously an NIS server or client, set the
NIS_MASTER_SERVER, NIS_SLAVE_SERVER, and NIS_CLIENT variables
to 0 in the /etc/rc.config.d/namesvrs file.
6. 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
7. Issue the following command to initialize the client host:
nisclient -i -h master_server_name