NFS Services Administrator's Guide
Configuring and Administering NIS
Configuring and Administering an NIS Client
Chapter 4184
To Enable NIS Client Capability
1. Make sure at least one NIS master or slave server is running on the
client’s subnetwork.
2. Log in as root to the NIS client.
3. On the NIS client, ensure that the $PATH environment variable
includes the following directory paths:
• /var/yp
• /usr/lib/netsvc/yp
• /usr/ccs/bin
4. Issue the following command to set the NIS domain name:
/usr/bin/domainname domainname
where domainname is a domain served by an NIS server on the
client’s subnetwork.
5. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN
variable to the domain name:
NIS_DOMAIN=domainname
6. In the /etc/rc.config.d/namesvrs file, set the NIS_CLIENT
variable to 1, as follows:
NIS_CLIENT=1
If the host was previously an NIS+ client, set the NISPLUS_CLIENT
variable to 0.
NOTE To configure the local host as an NFS client and enable the client to
bind to a specific server, you must use the -c option of the ypinit
command. Invoking the -c option of the ypinit command prompts
the user to provide a list of servers in the order of preference, to
which the client must bind to. To use the -c option of the ypinit
command specified in the following step, you must install patch
PHNE_24910 or later. If you do not want to use the -c option,
proceed to Step 9.
7. Issue the following command to set up the system as a client: