xref: /freebsd/usr.sbin/ypserv/ypserv.8 (revision f2e366a1057c0492a8abdf936898879a630e633e)
1778c7b1cSBill Paul.\" Copyright (c) 1995
2778c7b1cSBill Paul.\"	Bill Paul <wpaul@ctr.columbia.edu>.  All rights reserved.
3778c7b1cSBill Paul.\"
4778c7b1cSBill Paul.\" Redistribution and use in source and binary forms, with or without
5778c7b1cSBill Paul.\" modification, are permitted provided that the following conditions
6778c7b1cSBill Paul.\" are met:
7778c7b1cSBill Paul.\" 1. Redistributions of source code must retain the above copyright
8778c7b1cSBill Paul.\"    notice, this list of conditions and the following disclaimer.
9778c7b1cSBill Paul.\" 2. Redistributions in binary form must reproduce the above copyright
10778c7b1cSBill Paul.\"    notice, this list of conditions and the following disclaimer in the
11778c7b1cSBill Paul.\"    documentation and/or other materials provided with the distribution.
12778c7b1cSBill Paul.\" 3. All advertising materials mentioning features or use of this software
13778c7b1cSBill Paul.\"    must display the following acknowledgement:
14778c7b1cSBill Paul.\"	This product includes software developed by Bill Paul.
15778c7b1cSBill Paul.\" 4. Neither the name of the author nor the names of any co-contributors
16778c7b1cSBill Paul.\"    may be used to endorse or promote products derived from this software
17778c7b1cSBill Paul.\"    without specific prior written permission.
18778c7b1cSBill Paul.\"
19778c7b1cSBill Paul.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
20778c7b1cSBill Paul.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21778c7b1cSBill Paul.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22778c7b1cSBill Paul.\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
23778c7b1cSBill Paul.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24778c7b1cSBill Paul.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25778c7b1cSBill Paul.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26778c7b1cSBill Paul.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27778c7b1cSBill Paul.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28778c7b1cSBill Paul.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29778c7b1cSBill Paul.\" SUCH DAMAGE.
30778c7b1cSBill Paul.\"
3197d92980SPeter Wemm.\" $FreeBSD$
32778c7b1cSBill Paul.\"
33778c7b1cSBill Paul.Dd February 4, 1995
34778c7b1cSBill Paul.Dt YPSERV 8
35778c7b1cSBill Paul.Os
36778c7b1cSBill Paul.Sh NAME
37778c7b1cSBill Paul.Nm ypserv
386ecb7b20SJohn-Mark Gurney.Nd NIS database server
39778c7b1cSBill Paul.Sh SYNOPSIS
406ecb7b20SJohn-Mark Gurney.Nm
41778c7b1cSBill Paul.Op Fl n
42778c7b1cSBill Paul.Op Fl d
43778c7b1cSBill Paul.Op Fl p Ar path
44778c7b1cSBill Paul.Sh DESCRIPTION
456ecb7b20SJohn-Mark Gurney.Tn NIS
46778c7b1cSBill Paulis an RPC-based service designed to allow a number of UNIX-based
47f2e366a1SSheldon Hearnmachines to share a common set of configuration files.
48f2e366a1SSheldon HearnRather than
49778c7b1cSBill Paulrequiring a system administrator to update several copies of files
50778c7b1cSBill Paulsuch as
51778c7b1cSBill Paul.Pa /etc/hosts ,
52778c7b1cSBill Paul.Pa /etc/passwd
53778c7b1cSBill Pauland
54778c7b1cSBill Paul.Pa /etc/group ,
5598834523SPhilippe Charnierwhich tend to require frequent changes in most environments,
5698834523SPhilippe Charnier.Tn NIS
57778c7b1cSBill Paulallows groups of computers to share one set of data which can be
58778c7b1cSBill Paulupdated from a single location.
59778c7b1cSBill Paul.Pp
606ecb7b20SJohn-Mark GurneyThe
616ecb7b20SJohn-Mark Gurney.Nm
6298834523SPhilippe Charnierprogram is the server that distributes
6398834523SPhilippe Charnier.Tn NIS
6498834523SPhilippe Charnierdatabases to client systems within an
6598834523SPhilippe Charnier.Tn NIS
666ecb7b20SJohn-Mark Gurney.Em domain .
6798834523SPhilippe CharnierEach client in an
6898834523SPhilippe Charnier.Tn NIS
6998834523SPhilippe Charnierdomain must have its domainname set to
70778c7b1cSBill Paulone of the domains served by
716ecb7b20SJohn-Mark Gurney.Nm
72778c7b1cSBill Paulusing the
73778c7b1cSBill Paul.Xr domainname 1
74f2e366a1SSheldon Hearncommand.
75f2e366a1SSheldon HearnThe clients must also run
76778c7b1cSBill Paul.Xr ypbind 8
77778c7b1cSBill Paulin order to attach to a particular server, since it is possible to
7898834523SPhilippe Charnierhave several servers within a single
7998834523SPhilippe Charnier.Tn NIS
8098834523SPhilippe Charnierdomain.
81778c7b1cSBill Paul.Pp
82778c7b1cSBill PaulThe databases distributed by
836ecb7b20SJohn-Mark Gurney.Nm
84778c7b1cSBill Paulare stored in
85778c7b1cSBill Paul.Pa /var/yp/[domainname]
86778c7b1cSBill Paulwhere
87778c7b1cSBill Paul.Pa domainname
88f2e366a1SSheldon Hearnis the name of the domain being served.
89f2e366a1SSheldon HearnThere can be several
90778c7b1cSBill Paulsuch directories with different domainnames, and you need only one
916ecb7b20SJohn-Mark Gurney.Nm
92778c7b1cSBill Pauldaemon to handle them all.
93778c7b1cSBill Paul.Pp
94778c7b1cSBill PaulThe databases, or
95778c7b1cSBill Paul.Pa maps
96778c7b1cSBill Paulas they are often called,
97778c7b1cSBill Paulare created by
986ecb7b20SJohn-Mark Gurney.Pa /var/yp/Makefile
99f2e366a1SSheldon Hearnusing several system files as source.
100f2e366a1SSheldon HearnThe database files are in
101778c7b1cSBill Paul.Xr db 3
102778c7b1cSBill Paulformat to help speed retrieval when there are many records involved.
10398834523SPhilippe CharnierIn
10414201ae6SMike Pritchard.Fx ,
10598834523SPhilippe Charnierthe maps are always readable and writable only by root for security
106f2e366a1SSheldon Hearnreasons.
107f2e366a1SSheldon HearnTechnically this is only necessary for the password
108778c7b1cSBill Paulmaps, but since the data in the other maps can be found in
109778c7b1cSBill Paulother world-readable files anyway, it doesn't hurt and it's considered
110778c7b1cSBill Paulgood general practice.
111778c7b1cSBill Paul.Pp
1126ecb7b20SJohn-Mark GurneyThe
1136ecb7b20SJohn-Mark Gurney.Nm
1146ecb7b20SJohn-Mark Gurneyprogram is started by
11598834523SPhilippe Charnier.Pa /etc/rc.network
116778c7b1cSBill Paulif it has been enabled in
11798834523SPhilippe Charnier.Pa /etc/rc.conf .
118778c7b1cSBill Paul.Sh SPECIAL FEATURES
11914201ae6SMike PritchardThere are some problems associated with distributing a
12014201ae6SMike Pritchard.Fx
12114201ae6SMike Pritchardpassword
12298834523SPhilippe Charnierdatabase via
12398834523SPhilippe Charnier.Tn NIS Ns :
12414201ae6SMike Pritchard.Fx
12598834523SPhilippe Charniernormally only stores encrypted passwords
126778c7b1cSBill Paulin
127778c7b1cSBill Paul.Pa /etc/master.passwd ,
128f2e366a1SSheldon Hearnwhich is readable and writable only by root.
129f2e366a1SSheldon HearnBy turning this file
13098834523SPhilippe Charnierinto an
13198834523SPhilippe Charnier.Tn NIS
13298834523SPhilippe Charniermap, this security feature would be completely defeated.
133778c7b1cSBill Paul.Pp
13498834523SPhilippe CharnierTo make up for this, the
13514201ae6SMike Pritchard.Fx
13698834523SPhilippe Charnierversion of
1376ecb7b20SJohn-Mark Gurney.Nm
138778c7b1cSBill Paulhandles the
139778c7b1cSBill Paul.Pa master.passwd.byname
140778c7b1cSBill Pauland
141f7f470a8SBill Paul.Pa master.basswd.byuid
142f2e366a1SSheldon Hearnmaps in a special way.
143f2e366a1SSheldon HearnWhen the server receives a request to access
144778c7b1cSBill Pauleither of these two maps, it will check the TCP port from which the
145778c7b1cSBill Paulrequest originated and return an error if the port number is greater
146778c7b1cSBill Paulthan 1023. Since only the superuser is allowed to bind to TCP ports
147778c7b1cSBill Paulwith values less than 1024, the server can use this test to determine
148778c7b1cSBill Paulwhether or not the access request came from a privileged user.
149778c7b1cSBill PaulAny requests made by non-privileged users are therefore rejected.
150778c7b1cSBill Paul.Pp
151778c7b1cSBill PaulFurthermore, the
152778c7b1cSBill Paul.Xr getpwent 3
15314201ae6SMike Pritchardroutines in the
15414201ae6SMike Pritchard.Fx
15598834523SPhilippe Charnierstandard C library will only attempt to retrieve
156778c7b1cSBill Pauldata from the
157778c7b1cSBill Paul.Pa master.passwd.byname
158778c7b1cSBill Pauland
159778c7b1cSBill Paul.Pa master.passwd.byuid
160778c7b1cSBill Paulmaps for the superuser: if a normal user calls any of these functions,
161778c7b1cSBill Paulthe standard
162778c7b1cSBill Paul.Pa passwd.byname
163778c7b1cSBill Pauland
164778c7b1cSBill Paul.Pa passwd.byuid
165f2e366a1SSheldon Hearnmaps will be accessed instead.
166f2e366a1SSheldon HearnThe latter two maps are constructed by
1676ecb7b20SJohn-Mark Gurney.Pa /var/yp/Makefile
168778c7b1cSBill Paulby parsing the
169778c7b1cSBill Paul.Pa master.passwd
170778c7b1cSBill Paulfile and stripping out the password fields, and are therefore
171f2e366a1SSheldon Hearnsafe to pass on to unprivileged users.
172f2e366a1SSheldon HearnIn this way, the shadow password
173778c7b1cSBill Paulaspect of the protected
174778c7b1cSBill Paul.Pa master.passwd
17598834523SPhilippe Charnierdatabase is maintained through
17698834523SPhilippe Charnier.Tn NIS .
177778c7b1cSBill Paul.Pp
178778c7b1cSBill Paul.Sh NOTES
17942e3d43bSGuy Helmer.Ss Setting Up Master and Slave Servers
18042e3d43bSGuy Helmer.Xr ypinit 8
18142e3d43bSGuy Helmeris a convenient script that will help setup master and slave
18242e3d43bSGuy Helmer.Tn NIS
18342e3d43bSGuy Helmerservers.
184778c7b1cSBill Paul.Ss Limitations
18598834523SPhilippe CharnierThere are two problems inherent with password shadowing in
18698834523SPhilippe Charnier.Tn NIS
187778c7b1cSBill Paulthat users should
188778c7b1cSBill Paulbe aware of:
189778c7b1cSBill Paul.Bl -enum -offset indent
190778c7b1cSBill Paul.It
1916ecb7b20SJohn-Mark GurneyThe
1926ecb7b20SJohn-Mark Gurney.Sq TCP port less than 1024
1936ecb7b20SJohn-Mark Gurneytest is trivial to defeat for users with
194778c7b1cSBill Paulunrestricted access to machines on your network (even those machines
195778c7b1cSBill Paulwhich do not run UNIX-based operating systems).
196778c7b1cSBill Paul.It
19798834523SPhilippe CharnierIf you plan to use a
19814201ae6SMike Pritchard.Fx
19998834523SPhilippe Charniersystem to serve
20014201ae6SMike Pritchard.No non- Ns Tn FreeBSD
20198834523SPhilippe Charnierclients that
202778c7b1cSBill Paulhave no support for password shadowing (which is most of them), you
203778c7b1cSBill Paulwill have to disable the password shadowing entirely by uncommenting the
2046ecb7b20SJohn-Mark Gurney.Em UNSECURE=True
205778c7b1cSBill Paulentry in
2066ecb7b20SJohn-Mark Gurney.Pa /var/yp/Makefile .
207778c7b1cSBill PaulThis will cause the standard
208778c7b1cSBill Paul.Pa passwd.byname
209778c7b1cSBill Pauland
210778c7b1cSBill Paul.Pa passwd.byuid
211778c7b1cSBill Paulmaps to be generated with valid encrypted password fields, which is
21298834523SPhilippe Charniernecessary in order for
21314201ae6SMike Pritchard.No non- Ns Tn FreeBSD
21498834523SPhilippe Charnierclients to perform user
21598834523SPhilippe Charnierauthentication through
21698834523SPhilippe Charnier.Tn NIS .
217778c7b1cSBill Paul.El
218778c7b1cSBill Paul.Pp
219778c7b1cSBill Paul.Ss Security
220f7f470a8SBill PaulIn general, any remote user can issue an RPC to
2216ecb7b20SJohn-Mark Gurney.Nm
22298834523SPhilippe Charnierand retrieve the contents of your
22398834523SPhilippe Charnier.Tn NIS
22498834523SPhilippe Charniermaps, provided the remote user
225f2e366a1SSheldon Hearnknows your domain name.
226f2e366a1SSheldon HearnTo prevent such unauthorized transactions,
2276ecb7b20SJohn-Mark Gurney.Nm
228f7f470a8SBill Paulsupports a feature called
229f7f470a8SBill Paul.Pa securenets
230f7f470a8SBill Paulwhich can be used to restrict access to a given set of hosts.
231f7f470a8SBill PaulAt startup,
2326ecb7b20SJohn-Mark Gurney.Nm
233f7f470a8SBill Paulwill attempt to load the securenets information from a file
234f7f470a8SBill Paulcalled
2356ecb7b20SJohn-Mark Gurney.Pa /var/yp/securenets .
236f7f470a8SBill Paul(Note that this path varies depending on the path specified with
237f7f470a8SBill Paulthe
238f7f470a8SBill Paul.Fl p
239f7f470a8SBill Pauloption, which is explained below.) This file contains entries
240f7f470a8SBill Paulthat consist of a network specification and a network mask separated
241f7f470a8SBill Paulby white space.
2426ecb7b20SJohn-Mark GurneyLines starting with
2436ecb7b20SJohn-Mark Gurney.Dq \&#
244f2e366a1SSheldon Hearnare considered to be comments.
245f2e366a1SSheldon HearnA
246f7f470a8SBill Paulsample securenets file might look like this:
247f7f470a8SBill Paul.Bd -unfilled -offset indent
248f7f470a8SBill Paul# allow connections from local host -- mandatory
249f7f470a8SBill Paul127.0.0.1     255.255.255.255
250f7f470a8SBill Paul# allow connections from any host
25150aedc81SJustin M. Seger# on the 192.168.128.0 network
252f7f470a8SBill Paul192.168.128.0 255.255.255.0
253f7f470a8SBill Paul# allow connections from any host
254f7f470a8SBill Paul# between 10.0.0.0 to 10.0.15.255
255f7f470a8SBill Paul10.0.0.0      255.255.240.0
256f7f470a8SBill Paul.Ed
257f7f470a8SBill Paul.Pp
258f7f470a8SBill PaulIf
2596ecb7b20SJohn-Mark Gurney.Nm
260f7f470a8SBill Paulreceives a request from an address that matches one of these rules,
261f2e366a1SSheldon Hearnit will process the request normally.
262f2e366a1SSheldon HearnIf the address fails to match
263f7f470a8SBill Paula rule, the request will be ignored and a warning message will be
264f2e366a1SSheldon Hearnlogged.
265f2e366a1SSheldon HearnIf the
266f7f470a8SBill Paul.Pa /var/yp/securenets
267f7f470a8SBill Paulfile does not exist,
2686ecb7b20SJohn-Mark Gurney.Nm
269f7f470a8SBill Paulwill allow connections from any host.
270f7f470a8SBill Paul.Pp
2716ecb7b20SJohn-Mark GurneyThe
2726ecb7b20SJohn-Mark Gurney.Nm
2736ecb7b20SJohn-Mark Gurneyprogram also has support for Wietse Venema's
2746ecb7b20SJohn-Mark Gurney.Em tcpwrapper
275f7f470a8SBill Paulpackage, though it is not compiled in by default since
276778c7b1cSBill Paulthe
2776ecb7b20SJohn-Mark Gurney.Em tcpwrapper
27898834523SPhilippe Charnierpackage is not distributed with
27914201ae6SMike Pritchard.Fx .
28098834523SPhilippe CharnierHowever, if you have
2816ecb7b20SJohn-Mark Gurney.Pa libwrap.a
282778c7b1cSBill Pauland
2836ecb7b20SJohn-Mark Gurney.Pa tcpd.h ,
284778c7b1cSBill Paulyou can easily recompile
2856ecb7b20SJohn-Mark Gurney.Nm
286f2e366a1SSheldon Hearnwith them.
287f2e366a1SSheldon HearnThis allows the administrator to use the tcpwrapper
288f7f470a8SBill Paulconfiguration files (
289f7f470a8SBill Paul.Pa /etc/hosts.allow
290f7f470a8SBill Pauland
291f7f470a8SBill Paul.Pa /etc/hosts.deny )
292f7f470a8SBill Paulfor access control instead of
293f7f470a8SBill Paul.Pa /var/yp/securenets .
294f7f470a8SBill Paul.Pp
295f7f470a8SBill PaulNote: while both of these access control mechanisms provide some
296f7f470a8SBill Paulsecurity, they, like the privileged port test, are both vulnerable
2976ecb7b20SJohn-Mark Gurneyto
2986ecb7b20SJohn-Mark Gurney.Dq IP spoofing
2996ecb7b20SJohn-Mark Gurneyattacks.
300778c7b1cSBill Paul.Pp
3019573c1f1SBill Paul.Ss NIS v1 compatibility
3029573c1f1SBill PaulThis version of
3036ecb7b20SJohn-Mark Gurney.Nm
30498834523SPhilippe Charnierhas some support for serving
30598834523SPhilippe Charnier.Tn NIS
30698834523SPhilippe Charnierv1 clients.
30714201ae6SMike PritchardThe
30814201ae6SMike Pritchard.Fx
30998834523SPhilippe Charnier.Tn NIS
31098834523SPhilippe Charnierimplementation only uses the
31198834523SPhilippe Charnier.Tn NIS
31298834523SPhilippe Charnierv2 protocol, however other implementations
3139abcd271SGuido van Rooijinclude support for the v1 protocol for backwards compatibility
314f2e366a1SSheldon Hearnwith older systems.
315f2e366a1SSheldon HearnThe
3169573c1f1SBill Paul.Xr ypbind 8
3179573c1f1SBill Pauldaemons supplied with these systems will try to establish a binding
31898834523SPhilippe Charnierto an
31998834523SPhilippe Charnier.Tn NIS
32098834523SPhilippe Charnierv1 server even though they may never actually need it (and they may
3219573c1f1SBill Paulpersist in broadcasting in search of one even after they receive a
3229573c1f1SBill Paulresponse from a v2 server). Note that while
3239573c1f1SBill Paulsupport for normal client calls is provided, this version of
3246ecb7b20SJohn-Mark Gurney.Nm
3259573c1f1SBill Pauldoes not handle v1 map transfer requests; consequently, it can not
32698834523SPhilippe Charnierbe used as a master or slave in conjunction with older
32798834523SPhilippe Charnier.Tn NIS
32898834523SPhilippe Charnierservers that
329f2e366a1SSheldon Hearnonly support the v1 protocol.
330f2e366a1SSheldon HearnFortunately, there probably aren't any
3319573c1f1SBill Paulsuch servers still in use today.
332778c7b1cSBill Paul.Ss NIS servers that are also NIS clients
333778c7b1cSBill PaulCare must be taken when running
3346ecb7b20SJohn-Mark Gurney.Nm
335778c7b1cSBill Paulin a multi-server domain where the server machines are also
33698834523SPhilippe Charnier.Tn NIS
337f2e366a1SSheldon Hearnclients.
338f2e366a1SSheldon HearnIt is generally a good idea to force the servers to
339778c7b1cSBill Paulbind to themselves rather than allowing them to broadcast bind
340778c7b1cSBill Paulrequests and possibly become bound to each other: strange failure
341778c7b1cSBill Paulmodes can result if one server goes down and
342778c7b1cSBill Paulothers are dependent upon on it. (Eventually all the clients will
343778c7b1cSBill Paultime out and attempt to bind to other servers, but the delay
344778c7b1cSBill Paulinvolved can be considerable and the failure mode is still present
345778c7b1cSBill Paulsince the servers might bind to each other all over again).
346778c7b1cSBill Paul.Pp
347778c7b1cSBill PaulRefer to the
348778c7b1cSBill Paul.Xr ypbind 8
349778c7b1cSBill Paulman page for details on how to force it to bind to a particular
350778c7b1cSBill Paulserver.
351778c7b1cSBill Paul.Sh OPTIONS
352778c7b1cSBill PaulThe following options are supported by
3536ecb7b20SJohn-Mark Gurney.Nm Ns :
354778c7b1cSBill Paul.Bl -tag -width flag
355778c7b1cSBill Paul.It Fl n
356778c7b1cSBill PaulThis option affects the way
3576ecb7b20SJohn-Mark Gurney.Nm
358778c7b1cSBill Paulhandles yp_match requests for the
359778c7b1cSBill Paul.Pa hosts.byname
360778c7b1cSBill Pauland
361778c7b1cSBill Paul.Pa hosts.byaddress
362f2e366a1SSheldon Hearnmaps.
363f2e366a1SSheldon HearnBy default, if
3646ecb7b20SJohn-Mark Gurney.Nm
365778c7b1cSBill Paulcan't find an entry for a given host in its hosts maps, it will
366f2e366a1SSheldon Hearnreturn an error and perform no further processing.
367f2e366a1SSheldon HearnWith the
368778c7b1cSBill Paul.Fl n
369778c7b1cSBill Paulflag,
3706ecb7b20SJohn-Mark Gurney.Nm
371778c7b1cSBill Paulwill go one step further: rather than giving up immediately, it
372778c7b1cSBill Paulwill try to resolve the hostname or address using a DNS nameserver
373f2e366a1SSheldon Hearnquery.
374f2e366a1SSheldon HearnIf the query is successful,
3756ecb7b20SJohn-Mark Gurney.Nm
376778c7b1cSBill Paulwill construct a fake database record and return it to the client,
377778c7b1cSBill Paulthereby making it seem as though the client's yp_match request
378778c7b1cSBill Paulsucceeded.
379778c7b1cSBill Paul.Pp
380f7f470a8SBill PaulThis feature is provided for compatiblity with SunOS 4.1.x,
381778c7b1cSBill Paulwhich has brain-damaged resolver functions in its standard C
38298834523SPhilippe Charnierlibrary that depend on
38398834523SPhilippe Charnier.Tn NIS
38498834523SPhilippe Charnierfor hostname and address resolution.
38514201ae6SMike PritchardThe
38614201ae6SMike Pritchard.Fx
38798834523SPhilippe Charnierresolver can be configured to do DNS
388778c7b1cSBill Paulqueries directly, therefore it is not necessary to enable this
38998834523SPhilippe Charnieroption when serving only
39014201ae6SMike Pritchard.Fx
39198834523SPhilippe Charnier.Tn NIS
39298834523SPhilippe Charnierclients.
393778c7b1cSBill Paul.It Fl d
394f2e366a1SSheldon HearnCause the server to run in debugging mode.
395f2e366a1SSheldon HearnNormally,
3966ecb7b20SJohn-Mark Gurney.Nm
397778c7b1cSBill Paulreports only unusual errors (access violations, file access failures)
398778c7b1cSBill Paulusing the
399778c7b1cSBill Paul.Xr syslog 3
400f2e366a1SSheldon Hearnfacility.
401f2e366a1SSheldon HearnIn debug mode, the server does not background
402778c7b1cSBill Paulitself and prints extra status messages to stderr for each
403f2e366a1SSheldon Hearnrequest that it receives.
404f2e366a1SSheldon HearnAlso, while running in debug mode,
4056ecb7b20SJohn-Mark Gurney.Nm
406778c7b1cSBill Paulwill not spawn any additional subprocesses as it normally does
407778c7b1cSBill Paulwhen handling yp_all requests or doing DNS lookups. (These actions
408778c7b1cSBill Pauloften take a fair amount of time to complete and are therefore handled
409778c7b1cSBill Paulin subprocesses, allowing the parent server process to go on handling
410778c7b1cSBill Paulother requests.) This makes it easier to trace the server with
411778c7b1cSBill Paula debugging tool.
412778c7b1cSBill Paul.It Fl p Ar path
413778c7b1cSBill PaulNormally,
4146ecb7b20SJohn-Mark Gurney.Nm
41598834523SPhilippe Charnierassumes that all
41698834523SPhilippe Charnier.Tn NIS
41798834523SPhilippe Charniermaps are stored under
418778c7b1cSBill Paul.Pa /var/yp .
419778c7b1cSBill PaulThe
420778c7b1cSBill Paul.Fl p
42198834523SPhilippe Charnierflag may be used to specify an alternate
42298834523SPhilippe Charnier.Tn NIS
42398834523SPhilippe Charnierroot path, allowing
424778c7b1cSBill Paulthe system administrator to move the map files to a different place
425778c7b1cSBill Paulwithin the filesystem.
426778c7b1cSBill Paul.El
427778c7b1cSBill Paul.Sh FILES
428778c7b1cSBill Paul.Bl -tag -width Pa -compact
429778c7b1cSBill Paul.It Pa /var/yp/[domainname]/[maps]
43098834523SPhilippe Charnierthe
43198834523SPhilippe Charnier.Tn NIS
43298834523SPhilippe Charniermaps
433778c7b1cSBill Paul.It Pa /etc/host.conf
43498834523SPhilippe Charnierresolver configuration file
435f7f470a8SBill Paul.It Pa /var/yp/securenets
43698834523SPhilippe Charnierhost access control file
437778c7b1cSBill Paul.El
438778c7b1cSBill Paul.Sh SEE ALSO
439906c1e27SMike Pritchard.Xr ypcat 1 ,
440906c1e27SMike Pritchard.Xr db 3 ,
441906c1e27SMike Pritchard.Xr yp 4 ,
44232fdc705SMike Pritchard.Xr rpc.yppasswdd 8 ,
443778c7b1cSBill Paul.Xr ypbind 8 ,
44442e3d43bSGuy Helmer.Xr ypinit 8 ,
445778c7b1cSBill Paul.Xr yppush 8 ,
446906c1e27SMike Pritchard.Xr ypxfr 8
447f12a1471SPhilippe Charnier.Sh AUTHORS
44898834523SPhilippe Charnier.An Bill Paul Aq wpaul@ctr.columbia.edu
449778c7b1cSBill Paul.Sh HISTORY
450778c7b1cSBill PaulThis version of
4516ecb7b20SJohn-Mark Gurney.Nm
45285cf659aSMike Pritchardfirst appeared in
45385cf659aSMike Pritchard.Fx 2.2 .
454