1.\" $NetBSD: ypinit.8,v 1.15 2005/02/26 16:33:46 thorpej Exp $ 2.\" 3.\" Copyright (c) 1997 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Curt J. Sampson. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgement: 19.\" This product includes software developed by the NetBSD 20.\" Foundation, Inc. and its contributors. 21.\" 4. Neither the name of The NetBSD Foundation nor the names of its 22.\" contributors may be used to endorse or promote products derived 23.\" from this software without specific prior written permission. 24.\" 25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35.\" POSSIBILITY OF SUCH DAMAGE. 36.\" 37.Dd February 26, 2005 38.Dt YPINIT 8 39.Os 40.Sh NAME 41.Nm ypinit 42.Nd initialize NIS subsystem 43.Sh SYNOPSIS 44.Nm 45.Fl c 46.Op Ar domainname 47.Op Fl l Ar server1,...,serverN 48.Nm 49.Fl m 50.Op Ar domainname 51.Op Fl l Ar server1,...,serverN 52.Nm 53.Fl s 54.Ar master_server 55.Op Ar domainname 56.Op Fl l Ar server1,...,serverN 57.Sh DESCRIPTION 58.Nm 59initializes the files and directories that are required for a 60.Tn NIS 61client or server. 62.Pp 63If 64.Ar domainname 65isn't specified, the default domain (as returned by 66.Xr domainname 1 ) 67is used. 68.Pp 69The following options are available: 70.Bl -tag -width indent 71.It Fl c 72Create a 73.Tn NIS 74client. 75Initializes 76.Pa /var/yp/binding/\*[Lt]domain\*[Gt].ypservers 77to contain a list of ypservers for 78.Xr ypbind 8 79to connect to. 80.It Fl l Ar server1,...,serverN 81Set the list of client servers from the command line rather than 82prompting for them interactively. The format is a comma separated list 83of server names with no spaces. 84.It Fl m 85Create a master 86.Tn NIS 87server. 88Generates map data from local files 89.Pa ( /etc/master.passwd , 90.Pa /etc/group , 91etc.). 92.It Fl s Ar master_server 93Create a slave server. 94Downloads the maps from 95.Ar master_server , 96which should be the active master 97.Tn NIS 98server. 99.El 100.Pp 101To rebuild or refresh the maps for the 102.Tn NIS 103domain \*[Lt]domain\*[Gt], change to the 104.Pa /var/yp/\*[Lt]domain\*[Gt] 105directory and run 106.Ic make . 107.Sh FILES 108.Bl -tag -width /var/yp/ypserv.log -compact 109.It Pa /var/yp 110master 111.Tn NIS 112directory; contains the template makefiles. 113.It Pa /var/yp/\*[Lt]domain\*[Gt] 114directory to store 115.Tn NIS 116maps for \*[Lt]domain\*[Gt]. 117.It Pa /var/yp/binding/\*[Lt]domain\*[Gt].ypservers 118list of 119.Tn NIS 120servers to bind to. 121.El 122.Sh SEE ALSO 123.Xr domainname 1 , 124.Xr make 1 , 125.Xr makedbm 8 , 126.Xr mknetid 8 , 127.Xr nis 8 , 128.Xr stdethers 8 , 129.Xr stdhosts 8 , 130.Xr ypbind 8 , 131.Xr yppush 8 , 132.Xr ypserv 8 133.Sh AUTHORS 134Originally written by Mats O Jansson 135.Aq moj@stacken.kth.se . 136Modified by Jason R. Thorpe 137.Aq thorpej@NetBSD.org . 138