*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ypmake (1)              


ypmake(1M)							    ypmake(1M)

NAME    [Toc]    [Back]

     ypmake - rebuild and distribute NIS databases

SYNOPSIS    [Toc]    [Back]

     /var/yp/ypmake [ [	make-options ] map ]

DESCRIPTION    [Toc]    [Back]

     On	NIS master machines, ypmake uses the file /var/yp/mdbm_parse and the
     optional file /var/yp/local.make.script to	build the network information
     service (NIS) databases.  With no arguments, ypmake creates mdbm(3B)
     databases for any NIS maps	that are out-of-date and then executes
     yppush(1M)	to notify slave	servers	that there has been a change.

     If	invoked	with map, ypmake updates that map only.	 Typing	ypmake passwd
     creates and yppushes the password database	(assuming it is	out-of-date).
     Likewise, ypmake hosts and	ypmake networks	create databases from the host
     and network files,	/etc/hosts and /etc/networks, and yppush the databases
     to	the slave servers.  With the -u	option,	ypmake always creates the map.

     cron(1M) executes ypmake at regular intervals in order to maintain
     consistency between NIS servers' databases.  Once a day, ypmake moves the
     log file /var/yp/ypmake.log to /var/yp/ypmake.log.old to keep it from
     growing too large.

     ypmake reads the file /etc/config/ypmaster.options	so that	users can
     specify arguments to mdbm_parse.

     DIR  The directory	of the source files.  (Default is /etc.)

     DOM  Used to construct a domain other than	the master's default domain.

     NOPUSH    [Toc]    [Back]
	  When non-null, inhibits doing	a yppush of the	new database files.
	  (Default is the null string.)

     PWFILE    [Toc]    [Back]
	  full pathname	of the password	file used to build the passwd
	  database.  (Default is /etc/passwd.)

     For instance, to change the location of the password file used by ypmake
     to	/etc/passwd.yp,	include:


     in	/etc/config/ypmaster.options.  The variables can also be specified as
     arguments on the ypmake command line.

     To	have local NIS maps updated by ypmake, create the file
     /var/yp/local.make.script and add rules similar to	the ones in

									Page 1

ypmake(1M)							    ypmake(1M)

     Refer to ypfiles(4) and ypserv(1M)	for an overview	of NIS.

EXAMPLES    [Toc]    [Back]

     To	create and push	the hosts map only it's	out-of-date:

	  ypmake hosts

     To	always create and push the hosts and passwd map:

	  ypmake -u hosts passwd

     To	always create but not push the aliases map:

	  ypmake -u NOPUSH=1 aliases

FILES    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

     cron(1M), make(1),	makemdbm(1M), ypserv(1M).

NOTE    [Toc]    [Back]

     The mdbm_parse script supports building a database	for the	shadow
     passwords,	but this database is not built by default.  Ypmake must	be
     explicitly	called with a shadow map name argument.

     If	support	for new	databases are added a line must	be added to the	file
     /var/ns/domains/DOMAIN/nsswitch.conf for the NIS domain in	question for
     the server	to allow queries to the	map.

									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
ypmake HP-UX create or rebuild Network Information Service databases
sd HP-UX Software Distributor, commands to create, distribute, install, monitor, and manage software
newaliases FreeBSD rebuild the data base for the mail aliases file
newaliases OpenBSD rebuild the data base for the mail aliases file
newaliases IRIX rebuild the data base for the mail aliases file
ypmake Tru64 rebuild Network Information Service (NIS) database using the make command
yp_mkdb FreeBSD generate the NIS databases
tokenadm OpenBSD SNK-004 token databases
netgroup_mkdb OpenBSD generate the netgroup databases
ypcat IRIX print values in NIS databases
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service