Network Information Service (NIS) B.11.31.04 Administrator's Guide

NOTE: Back up the /etc/group file before modifying it.
Remove all users from the /etc/group file, except the system entries required for the
system to boot and function properly.
The changes made to the /etc/group file on an NIS slave server must be identical to
the changes made to the /etc/group on an NIS client.
Enabling the NIS Slave Server
To enable the NIS slave server, complete the following steps:
1. Log in to the NIS master server.
2. Verify that the NIS master server is configured and running NIS:
# /usr/bin/ypwhich
The system displays the name of the NIS server to which the client is bound.
3. Log in to the host as a superuser. The host you want to log in to must be designated
as a slave server.
4. Add the directory paths /var/yp, /usr/lib/netsvc/yp, and /usr/ccs/bin
in the $PATH environment variable:
# export PATH=$PATH:/var/yp:/usr/lib/netsvc/yp:/usr/ccs/bin
Verify that the directory paths /var/yp, /usr/lib/netsvc/yp, and /usr/
ccs/bin are successfully added in the $PATH environment variable:
# echo $PATH
The system displays all the paths that the PATH environment variable contains:
/var/yp:/usr/lib/netsvc/yp:/usr/ccs/bin
5. Set the NIS domain name:
# /usr/bin/domainname domainname
where:
domainname is the same as the domain name on the NIS master server.
6. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN variable to the
domain name:
# NIS_DOMAIN=domainname
7. In the /etc/rc.config.d/namesvrs file, set the NIS_SLAVE_SERVER and
NIS_CLIENT variables to 1:
NIS_SLAVE_SERVER=1
NIS_CLIENT=1
8. Set up the NIS slave server and copy the NIS maps from the master server:
# /usr/sbin/ypinit -s NIS_server_name [DOM=domainname]
where:
NIS_server_name is the name of the master server.
Enabling the NIS Slave Server 47