Manual Page Result
0
Command: ypmake | Section: 8 | Source: Digital UNIX | File: ypmake.8.gz
ypmake(8) System Manager's Manual ypmake(8)
NAME
ypmake - rebuild Network Information Service (NIS) database using the
make command
SYNOPSIS
cd /var/yp
make [ options ] [ map ]
DESCRIPTION
The make command uses the /var/yp/Makefile file to build an NIS data-
base. With no arguments, make creates databases for any NIS maps that
are out-of-date, and then executes yppush(8) to notify slave servers
that there has been a change.
Note
Execute the make command only at an NIS master server machine. If
it is executed from either a slave server or an NIS client ma-
chine, the created changes will only be overwritten when the next
NIS master server machine update, using ypxfr(8), is performed.
FLAGS
The options argument can be used to override the default values of
three special variables used by make: Instructs make to use the source
files in the specified directory. The default is /var/yp/src. In-
structs make to construct a domain other than the master's default do-
main. The DOM variable in the /var/yp/Makefile file must be set to the
domain name before running make. If you run ypsetup, the DOM variable
is set when you specify a domain name. Specifies the database routines
used to store NIS maps. The choices are: btree - Recommended when cre-
ating and maintaining very large maps. dbm/ndbm - For backward compat-
ibility. This is the default. hash - A potentially quicker method for
managing small maps. When non-null inhibits updating of the new data-
base files using the yppush(8) function. The default is the null
string.
To override the default values of these special variables, an options
argument format of special_variable = value is used. See the EXAMPLES
section for an example.
The map argument supplied on the command line instructs make to update
only the specified map. The specified maps are those located at
/var/yp/{domain}, where {domain} is the NIS domain name. Some typical
entries for the map argument are passwd, hosts, and networks. Typing
make passwd creates and updates the NIS password database, if it is out
of date. The make command distributes the updated password database to
the slave servers using yppush(8). Therefore, typing make host or make
networks creates and updates the host and network files,
/var/yp/src/hosts and /var/yp/src/networks, respectively, on the master
and slave servers.
See ypfiles(4) and ypserv(8) for an overview of NIS.
RESTRICTIONS
You must use the same database format for each map in a domain. In ad-
dition, a server serving multiple NIS domains must use the same data-
base format for all domains.
Although a Digital UNIX NIS server that takes advantage of btree files
will be able to store very large maps, NIS slave servers that lack this
feature might have a much smaller limit on the number of map entries
they can handle. It may not be possible to distribute very large maps
from a Digital UNIX NIS master server to a slave server that lacks sup-
port for very large maps. NIS clients are not affected by these en-
hancements.
EXAMPLES
This example causes make to create a password NIS map for the domain
NewDomain instead of for the default domain: make DOM=NewDomain passwd
RELATED INFORMATION
Commands: make(1), makedbm(8), ypserv(8), yppush(8), ypxfr(8).
Files: ypfiles(4). delim off
ypmake(8)