1.\" $NetBSD: ypinit.8,v 1.16 2008/04/30 13:11:03 martin 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.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" 30.Dd February 26, 2005 31.Dt YPINIT 8 32.Os 33.Sh NAME 34.Nm ypinit 35.Nd initialize NIS subsystem 36.Sh SYNOPSIS 37.Nm 38.Fl c 39.Op Ar domainname 40.Op Fl l Ar server1,...,serverN 41.Nm 42.Fl m 43.Op Ar domainname 44.Op Fl l Ar server1,...,serverN 45.Nm 46.Fl s 47.Ar master_server 48.Op Ar domainname 49.Op Fl l Ar server1,...,serverN 50.Sh DESCRIPTION 51.Nm 52initializes the files and directories that are required for a 53.Tn NIS 54client or server. 55.Pp 56If 57.Ar domainname 58isn't specified, the default domain (as returned by 59.Xr domainname 1 ) 60is used. 61.Pp 62The following options are available: 63.Bl -tag -width indent 64.It Fl c 65Create a 66.Tn NIS 67client. 68Initializes 69.Pa /var/yp/binding/\*[Lt]domain\*[Gt].ypservers 70to contain a list of ypservers for 71.Xr ypbind 8 72to connect to. 73.It Fl l Ar server1,...,serverN 74Set the list of client servers from the command line rather than 75prompting for them interactively. The format is a comma separated list 76of server names with no spaces. 77.It Fl m 78Create a master 79.Tn NIS 80server. 81Generates map data from local files 82.Pa ( /etc/master.passwd , 83.Pa /etc/group , 84etc.). 85.It Fl s Ar master_server 86Create a slave server. 87Downloads the maps from 88.Ar master_server , 89which should be the active master 90.Tn NIS 91server. 92.El 93.Pp 94To rebuild or refresh the maps for the 95.Tn NIS 96domain \*[Lt]domain\*[Gt], change to the 97.Pa /var/yp/\*[Lt]domain\*[Gt] 98directory and run 99.Ic make . 100.Sh FILES 101.Bl -tag -width /var/yp/ypserv.log -compact 102.It Pa /var/yp 103master 104.Tn NIS 105directory; contains the template makefiles. 106.It Pa /var/yp/\*[Lt]domain\*[Gt] 107directory to store 108.Tn NIS 109maps for \*[Lt]domain\*[Gt]. 110.It Pa /var/yp/binding/\*[Lt]domain\*[Gt].ypservers 111list of 112.Tn NIS 113servers to bind to. 114.El 115.Sh SEE ALSO 116.Xr domainname 1 , 117.Xr make 1 , 118.Xr makedbm 8 , 119.Xr mknetid 8 , 120.Xr nis 8 , 121.Xr stdethers 8 , 122.Xr stdhosts 8 , 123.Xr ypbind 8 , 124.Xr yppush 8 , 125.Xr ypserv 8 126.Sh AUTHORS 127Originally written by Mats O Jansson 128.Aq moj@stacken.kth.se . 129Modified by Jason R. Thorpe 130.Aq thorpej@NetBSD.org . 131