Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

make(1)

makedbm(8)

ypserv(8)

yppush(8)

ypmake(8)  —  Maintenance

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 to build an NIS database.  With no arguments, make creates dbm 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 machine, the created changes will only be overwritten when the next NIS master server machine update, using ypxfr, is performed. 

FLAGS

The options argument can be used to override the default values of three special variables used by make:

DIRInstructs make to use the source files in the specified directory.  The default is /var/yp/src

NOPUSH
When non-null, inhibits updating of the new data base files using the yppush(8) function. The default is the null string. 

DOMInstructs make to construct a domain other than the master’s default domain. The DOM variable in /var/yp/Makefile 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. 

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 data base 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. 

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

make(1), makedbm(8), ypserv(8), yppush(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026