1 .\" Copyright (c) 1995, 1996
2 .\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by Bill Paul
15 .\" 4. Neither the name of the University nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .\" $FreeBSD: src/usr.sbin/yp_mkdb/yp_mkdb.8,v 1.12.2.4 2003/03/11 22:31:35 trhodes Exp $
32 .\" $DragonFly: src/usr.sbin/yp_mkdb/yp_mkdb.8,v 1.3 2004/03/11 12:29:00 hmp Exp $
39 .Nd "generate the NIS databases"
51 .Op Fl o Ar outputfile
52 .Op Fl d Ar domainname
53 .Op Fl m Ar mastername
61 style databases for use with
66 utility reads data from
72 format (using the hash table method).
73 The input should be in 'key data' format, which is to say
76 data separated by white space.
78 is assumed to be the key, and everything else is assumed to be
80 These databases are typically stored in
81 .Pa /var/yp/[domainname]
84 is the name of the NIS domain being served.
87 utility is usually invoked by
88 .Pa /var/yp/Makefile .
91 utility can also be used to dump an NIS database file so that its
92 contents can be examined.
93 For security reasons, all databases that
95 creates are readable and writable by owner only (and usually the
98 The following options are available:
99 .Bl -tag -width indent
103 to send a YPPROC_CLEAR request to
106 This signal tells the server to close any open
107 database descriptors and flush out its database cache.
109 this flag signals the server and does nothing else.
111 of a database creation command,
113 will send the signal only after the new database has been successfully
118 to add a special entry to the database with a key of
120 and an empty data field.
121 If this key is present in a map, it alters the
122 behavior of the 'match' procedure in
125 If a match query fails (because the server couldn't find
126 a record that matched the supplied key), and the
128 key exists within the queried map,
130 will try to match the entry again using a DNS lookup.
132 special behavior only applies to the
137 flag for other maps has no effect.
139 This flag is used to add a special entry to the database with a key of
141 and an empty data field.
142 If this key is present in a map,
144 will deny access to the map to any client that is not using a
145 reserved port for its query.
146 This is used mainly for the
148 maps, which should be restricted to privileged access only.
150 This flag is used to turn on filtering of lines in the source file
151 input that start with ``+'' or ``-'' characters.
153 have special meaning for the
158 maps and hence should not be allowed to appear in them as the first
159 character of a key or datum.
164 will reject any source line that starts with a ``+'' or ``-''
165 character and issue a warning message displaying the line that
168 Dump (or 'unwind') an NIS database.
169 This option can be used to
170 inspect the contents of an existing NIS database.
171 .It Fl i Ar inputfile
172 When generating an NIS map, encode
174 as a special entry in the database with a key of
176 .It Fl o Ar outputfile
177 When generating an NIS map, encode
179 as a special entry in the database with a key of
181 .It Fl d Ar domainname
182 When generating an NIS map, encode
184 as a special entry in the database with a key of
186 .It Fl m Ar mastername
187 When generating an NIS map, encode
189 as a special entry in the database with a key of
191 This entry in the database is frequently used by various NIS utilities
192 to determine the name of an NIS master server for a domain.
195 assumes that the local host is the NIS master; the
197 option is used to override this default.
200 .Bl -tag -width /var/yp/Makefile -compact
201 .It Pa /var/yp/Makefile
202 the Makefile that calls
204 to build the NIS databases
210 .An Bill Paul Aq wpaul@ctr.columbia.edu