NFS Services Administrator's Guide
Configuring and Administering NIS
Configuring and Administering an NIS Slave Server
Chapter 4176
To Enable NIS Slave Server Capability
1. Make sure the NIS master server is already configured and running
NIS.
2. Log in as root to the host that will be the slave server.
3. On the host that will be the slave server, 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 the same as the domain name on the NIS
master server.
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_SLAVE_SERVER
and NIS_CLIENT variables to 1, as follows:
NIS_SLAVE_SERVER=1
NIS_CLIENT=1
If the slave server is a master server in another NIS domain, set the
NIS_MASTER_SERVER variable to 1 and the NIS_SLAVE_SERVER
variable to 0. The yppasswdd daemon, which is required on the
master server, is started only if NIS_MASTER_SERVER=1.
If the slave server is an NIS+ server or client, set the
NISPLUS_SERVER and NISPLUS_CLIENT variables to 0.
7. Issue the following command to set up the NIS slave server and copy
the NIS maps from the master server:
/usr/sbin/ypinit -s NIS_server_name [DOM=domainname]