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

transparent to the user or application and can be achieved without any change to the
/etc/nsswitch.conf configuration file.
To enable the DNS Forwarding mode on the NIS server, complete the following steps:
1. Log in to the NIS master server as superuser.
2. Enter the following command to stop the NIS server:
/sbin/init.d/nis.server stop
3. Add the -d option to the YPSERV_OPTIONS variable in the /etc/rc.config.d/namesvrs
file as follows:
YPSERV_OPTIONS=-d
4. Enter the following command to restart the NIS server:
/sbin/init.d/nis.server start
Configuring an NIS Master Server in a Domain with Solaris Systems
To configure an NIS master server in a domain with Sun systems, complete the following steps:
1. Log in as superuser to the host that is designated as the master server.
2. If the HP Makefile is already customized, move it to the /var/yp/Makefile.hp. If not,
ignore this step.
3. Copy the Sun Makefile in to the /var/yp directory on the HP system.
If the Sun Makefile is not named Makefile, use a text editor to set the MAKEFILE_NAME
variable to the name of the Sun Makefile in the /usr/sbin/ypinit script.
4. If the HP Makefile is already customized, add those changes to the Sun Makefile.
5. In the /usr/sbin/ypinit script on the HP host that is designated as the master server,
add the netmasks.byaddr, bootparams, ethers.byaddr, and ethers.byname maps
to the MASTER_MAPS variable.
6. On one of the Sun systems, locate or create an /etc/ethers file, an /etc/bootparams
file, and an /etc/netmasks file that contain all the information required by the Sun systems.
7. Copy the /etc/ethers, /etc/bootparams, and /etc/netmasks files to the HP host
that is designated as the master server.
8. Follow the steps for enabling the NIS Master Server capability described in the section,
“Enabling the NIS Master Server Capability” (page 24)
Enabling the Shadow Password Mode
To enable the shadow password mode on an NIS master server, complete the following steps:
1. Log in to the NIS master server as superuser.
2. Set the SHADOW_MODE variable to 1 in /etc/rc.config.d/namesvrs file, as follows:
SHADOW_MODE=1
3. Enter the following command:
# pwconv
This command moves the system to the shadow password mode.
32 Configuring and Administering an NIS Master Server