NFS Services Administrator's Guide

Configuring and Administering NIS
Configuring and Administering an NIS Master Server
Chapter 4 171
To Use NIS With Short File Names
1. Make sure the first 14 characters of your domain name uniquely
identify your domain among the other NIS domains in your network.
2. If you plan to use NIS to manage your automounter maps, keep the
automounter map names to 10 characters or fewer.
3. Log in as root to the NIS master server.
4. In the /var/yp/Makefile file, uncomment all the lines between
START OF EXAMPLE and END OF EXAMPLE. (Remove the sharp sign [#]
from the beginning of each line.) Do not uncomment the START OF
EXAMPLE and END OF EXAMPLE lines.
5. In the /var/yp/Makefile file, delete everything after the END OF
EXAMPLE line.
This procedure causes your NIS master server to use HP’s proprietary
ypmake script instead of the Makefile. The Makefile does not support
short filenames, but ypmake does. Type man 1M ypmake at the HP-UX
prompt for more information.
To Configure an HP-UX Master Server in a Domain
with Sun Systems
1. Log in as root to the host that will be the master server.
2. If you have customized your HP Makefile, move it to
/var/yp/Makefile.hp.
3. Copy your Sun Makefile into the /var/yp directory on the HP
system.
If your Sun Makefile is not called Makefile, use a text editor to set
the MAKEFILE_NAME variable to the name of your Sun Makefile in the
/usr/sbin/ypinit script.
4. If you have customized your HP Makefile, add those changes into
your Sun Makefile.
5. In the /usr/sbin/ypinit script on the HP host that will be the
master server, add the netmasks.byaddr, bootparams,
ethers.byaddr, and ethers.byname maps to the MASTER_MAPS
variable.