NFS Services Administrator's Guide

Configuring and Administering NIS+
Setting Up the NIS+ Namespace
Chapter 5216
To Populate the NIS+ Tables on the Master Server
You can populate NIS+ tables from files or from NIS maps. Before you
populate the master server’s tables, you must run the nisserver script
to create the tables. See “To Set Up the Root Master Server” on page 214
or “To Set Up an NIS+ Subdomain” on page 225.
NOTE The nispopulate script may fail if there is insufficient /tmp space on the
system. To keep this from happening, you can set the environment
variable TMPDIR to a different directory. If TMPDIR is not set to a valid
directory, the script will use the /tmp directory instead.
1. Log in as root to the master server.
2. If you will populate the NIS+ tables from files, create a temporary
directory, and copy the files into it from the /etc directory:
mkdir /nis+files
cd /etc
cp auto_home auto_master group hosts mail/aliases netgroup
\
networks passwd protocols rpc services TIMEZONE
../nis+files
3. In the temporary directory, remove the entry for root from the
passwd file. Remove all other entries with user ID 0 (zero) from the
passwd file. Remove all the system entries such as root and bin,
with user IDs of less than 100, from the passwd file. This should be
done both for security and for interoperability with NIS and other
NIS+ implementations. Remove any other entries from the passwd,
aliases, or hosts files that you do not want distributed across the
namespace.
4. In the temporary directory, remove any fully-qualified DNS domain
names from the hosts file. NIS+ cannot find fully-qualified DNS
domain names in its hosts table unless the DNS domain name
matches one of the NIS+ domain names in its namespace.
5. Replace any periods in automounter map names with underbars. For
example, if your master map is called auto.master, rename it to
auto_master. If you will populate your NIS+ tables from NIS maps,