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.\" 3353c40578SBrian Somers.Dd June 25, 2009 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 433868f70eSMatteo Riondato.Op Fl P Ar port 44778c7b1cSBill Paul.Op Fl p Ar path 45778c7b1cSBill Paul.Sh DESCRIPTION 466ecb7b20SJohn-Mark Gurney.Tn NIS 47778c7b1cSBill Paulis an RPC-based service designed to allow a number of UNIX-based 48f2e366a1SSheldon Hearnmachines to share a common set of configuration files. 49f2e366a1SSheldon HearnRather than 50778c7b1cSBill Paulrequiring a system administrator to update several copies of files 51778c7b1cSBill Paulsuch as 52778c7b1cSBill Paul.Pa /etc/hosts , 53778c7b1cSBill Paul.Pa /etc/passwd 54778c7b1cSBill Pauland 55778c7b1cSBill Paul.Pa /etc/group , 5698834523SPhilippe Charnierwhich tend to require frequent changes in most environments, 5798834523SPhilippe Charnier.Tn NIS 58778c7b1cSBill Paulallows groups of computers to share one set of data which can be 59778c7b1cSBill Paulupdated from a single location. 60778c7b1cSBill Paul.Pp 616ecb7b20SJohn-Mark GurneyThe 626ecb7b20SJohn-Mark Gurney.Nm 63490d5836SPhilippe Charnierutility is the server that distributes 6498834523SPhilippe Charnier.Tn NIS 6598834523SPhilippe Charnierdatabases to client systems within an 6698834523SPhilippe Charnier.Tn NIS 676ecb7b20SJohn-Mark Gurney.Em domain . 6898834523SPhilippe CharnierEach client in an 6998834523SPhilippe Charnier.Tn NIS 7098834523SPhilippe Charnierdomain must have its domainname set to 71778c7b1cSBill Paulone of the domains served by 726ecb7b20SJohn-Mark Gurney.Nm 73778c7b1cSBill Paulusing the 74778c7b1cSBill Paul.Xr domainname 1 75f2e366a1SSheldon Hearncommand. 76f2e366a1SSheldon HearnThe clients must also run 77778c7b1cSBill Paul.Xr ypbind 8 78778c7b1cSBill Paulin order to attach to a particular server, since it is possible to 7998834523SPhilippe Charnierhave several servers within a single 8098834523SPhilippe Charnier.Tn NIS 8198834523SPhilippe Charnierdomain. 82778c7b1cSBill Paul.Pp 83778c7b1cSBill PaulThe databases distributed by 846ecb7b20SJohn-Mark Gurney.Nm 85778c7b1cSBill Paulare stored in 86778c7b1cSBill Paul.Pa /var/yp/[domainname] 87778c7b1cSBill Paulwhere 88778c7b1cSBill Paul.Pa domainname 89f2e366a1SSheldon Hearnis the name of the domain being served. 90f2e366a1SSheldon HearnThere can be several 91778c7b1cSBill Paulsuch directories with different domainnames, and you need only one 926ecb7b20SJohn-Mark Gurney.Nm 93778c7b1cSBill Pauldaemon to handle them all. 94778c7b1cSBill Paul.Pp 95778c7b1cSBill PaulThe databases, or 96778c7b1cSBill Paul.Pa maps 97778c7b1cSBill Paulas they are often called, 98778c7b1cSBill Paulare created by 996ecb7b20SJohn-Mark Gurney.Pa /var/yp/Makefile 100f2e366a1SSheldon Hearnusing several system files as source. 101f2e366a1SSheldon HearnThe database files are in 102778c7b1cSBill Paul.Xr db 3 103778c7b1cSBill Paulformat to help speed retrieval when there are many records involved. 10498834523SPhilippe CharnierIn 10514201ae6SMike Pritchard.Fx , 10698834523SPhilippe Charnierthe maps are always readable and writable only by root for security 107f2e366a1SSheldon Hearnreasons. 108f2e366a1SSheldon HearnTechnically this is only necessary for the password 109778c7b1cSBill Paulmaps, but since the data in the other maps can be found in 11036a142c4SRuslan Ermilovother world-readable files anyway, it does not hurt and it is considered 111778c7b1cSBill Paulgood general practice. 112778c7b1cSBill Paul.Pp 1136ecb7b20SJohn-Mark GurneyThe 1146ecb7b20SJohn-Mark Gurney.Nm 115490d5836SPhilippe Charnierutility is started by 1163a3f8378SMike Makonnen.Pa /etc/rc.d/ypserv 117778c7b1cSBill Paulif it has been enabled in 11898834523SPhilippe Charnier.Pa /etc/rc.conf . 119778c7b1cSBill Paul.Sh SPECIAL FEATURES 12014201ae6SMike PritchardThere are some problems associated with distributing a 12114201ae6SMike Pritchard.Fx 12214201ae6SMike Pritchardpassword 12398834523SPhilippe Charnierdatabase via 124a654c53eSRuslan Ermilov.Tn NIS : 12514201ae6SMike Pritchard.Fx 12698834523SPhilippe Charniernormally only stores encrypted passwords 127778c7b1cSBill Paulin 128778c7b1cSBill Paul.Pa /etc/master.passwd , 129f2e366a1SSheldon Hearnwhich is readable and writable only by root. 130f2e366a1SSheldon HearnBy turning this file 13198834523SPhilippe Charnierinto an 13298834523SPhilippe Charnier.Tn NIS 13398834523SPhilippe Charniermap, this security feature would be completely defeated. 134778c7b1cSBill Paul.Pp 13598834523SPhilippe CharnierTo make up for this, the 13614201ae6SMike Pritchard.Fx 13798834523SPhilippe Charnierversion of 1386ecb7b20SJohn-Mark Gurney.Nm 139778c7b1cSBill Paulhandles the 140778c7b1cSBill Paul.Pa master.passwd.byname 141778c7b1cSBill Pauland 142c192455bSJeroen Ruigrok van der Werven.Pa master.passwd.byuid 143f2e366a1SSheldon Hearnmaps in a special way. 144f2e366a1SSheldon HearnWhen the server receives a request to access 14553c40578SBrian Somerseither of these two maps (or in fact either of the 14653c40578SBrian Somers.Pa shadow.byname 14753c40578SBrian Somersor 14853c40578SBrian Somers.Pa shadow.byuid 14953c40578SBrian Somersmaps), it will check the TCP port from which the 150778c7b1cSBill Paulrequest originated and return an error if the port number is greater 1514e86fcacSSheldon Hearnthan 1023. 1524e86fcacSSheldon HearnSince only the superuser is allowed to bind to TCP ports 153778c7b1cSBill Paulwith values less than 1024, the server can use this test to determine 154778c7b1cSBill Paulwhether or not the access request came from a privileged user. 155778c7b1cSBill PaulAny requests made by non-privileged users are therefore rejected. 156778c7b1cSBill Paul.Pp 157778c7b1cSBill PaulFurthermore, the 158778c7b1cSBill Paul.Xr getpwent 3 15914201ae6SMike Pritchardroutines in the 16014201ae6SMike Pritchard.Fx 16198834523SPhilippe Charnierstandard C library will only attempt to retrieve 162778c7b1cSBill Pauldata from the 163778c7b1cSBill Paul.Pa master.passwd.byname 164778c7b1cSBill Pauland 165778c7b1cSBill Paul.Pa master.passwd.byuid 166778c7b1cSBill Paulmaps for the superuser: if a normal user calls any of these functions, 167778c7b1cSBill Paulthe standard 168778c7b1cSBill Paul.Pa passwd.byname 169778c7b1cSBill Pauland 170778c7b1cSBill Paul.Pa passwd.byuid 171f2e366a1SSheldon Hearnmaps will be accessed instead. 172f2e366a1SSheldon HearnThe latter two maps are constructed by 1736ecb7b20SJohn-Mark Gurney.Pa /var/yp/Makefile 174778c7b1cSBill Paulby parsing the 175778c7b1cSBill Paul.Pa master.passwd 176778c7b1cSBill Paulfile and stripping out the password fields, and are therefore 177f2e366a1SSheldon Hearnsafe to pass on to unprivileged users. 178f2e366a1SSheldon HearnIn this way, the shadow password 179778c7b1cSBill Paulaspect of the protected 180778c7b1cSBill Paul.Pa master.passwd 18198834523SPhilippe Charnierdatabase is maintained through 18298834523SPhilippe Charnier.Tn NIS . 183778c7b1cSBill Paul.Sh NOTES 18442e3d43bSGuy Helmer.Ss Setting Up Master and Slave Servers 18542e3d43bSGuy Helmer.Xr ypinit 8 18642e3d43bSGuy Helmeris a convenient script that will help setup master and slave 18742e3d43bSGuy Helmer.Tn NIS 18842e3d43bSGuy Helmerservers. 189778c7b1cSBill Paul.Ss Limitations 19098834523SPhilippe CharnierThere are two problems inherent with password shadowing in 19198834523SPhilippe Charnier.Tn NIS 192778c7b1cSBill Paulthat users should 193778c7b1cSBill Paulbe aware of: 194778c7b1cSBill Paul.Bl -enum -offset indent 195778c7b1cSBill Paul.It 1966ecb7b20SJohn-Mark GurneyThe 1976ecb7b20SJohn-Mark Gurney.Sq TCP port less than 1024 1986ecb7b20SJohn-Mark Gurneytest is trivial to defeat for users with 199778c7b1cSBill Paulunrestricted access to machines on your network (even those machines 200778c7b1cSBill Paulwhich do not run UNIX-based operating systems). 201778c7b1cSBill Paul.It 20298834523SPhilippe CharnierIf you plan to use a 20314201ae6SMike Pritchard.Fx 20498834523SPhilippe Charniersystem to serve 205b5c508fbSRuslan Ermilov.No non- Ns Fx 20698834523SPhilippe Charnierclients that 207778c7b1cSBill Paulhave no support for password shadowing (which is most of them), you 208778c7b1cSBill Paulwill have to disable the password shadowing entirely by uncommenting the 2096ecb7b20SJohn-Mark Gurney.Em UNSECURE=True 210778c7b1cSBill Paulentry in 2116ecb7b20SJohn-Mark Gurney.Pa /var/yp/Makefile . 212778c7b1cSBill PaulThis will cause the standard 213778c7b1cSBill Paul.Pa passwd.byname 214778c7b1cSBill Pauland 215778c7b1cSBill Paul.Pa passwd.byuid 216778c7b1cSBill Paulmaps to be generated with valid encrypted password fields, which is 21798834523SPhilippe Charniernecessary in order for 218b5c508fbSRuslan Ermilov.No non- Ns Fx 21998834523SPhilippe Charnierclients to perform user 22098834523SPhilippe Charnierauthentication through 22198834523SPhilippe Charnier.Tn NIS . 222778c7b1cSBill Paul.El 223778c7b1cSBill Paul.Pp 224778c7b1cSBill Paul.Ss Security 225f7f470a8SBill PaulIn general, any remote user can issue an RPC to 2266ecb7b20SJohn-Mark Gurney.Nm 22798834523SPhilippe Charnierand retrieve the contents of your 22898834523SPhilippe Charnier.Tn NIS 22998834523SPhilippe Charniermaps, provided the remote user 230f2e366a1SSheldon Hearnknows your domain name. 231f2e366a1SSheldon HearnTo prevent such unauthorized transactions, 2326ecb7b20SJohn-Mark Gurney.Nm 233f7f470a8SBill Paulsupports a feature called 234f7f470a8SBill Paul.Pa securenets 235f7f470a8SBill Paulwhich can be used to restrict access to a given set of hosts. 236f7f470a8SBill PaulAt startup, 2376ecb7b20SJohn-Mark Gurney.Nm 238f7f470a8SBill Paulwill attempt to load the securenets information from a file 239f7f470a8SBill Paulcalled 2406ecb7b20SJohn-Mark Gurney.Pa /var/yp/securenets . 241f7f470a8SBill Paul(Note that this path varies depending on the path specified with 242f7f470a8SBill Paulthe 243f7f470a8SBill Paul.Fl p 2444e86fcacSSheldon Hearnoption, which is explained below.) 2454e86fcacSSheldon HearnThis file contains entries 246f7f470a8SBill Paulthat consist of a network specification and a network mask separated 247f7f470a8SBill Paulby white space. 2486ecb7b20SJohn-Mark GurneyLines starting with 2496ecb7b20SJohn-Mark Gurney.Dq \&# 250f2e366a1SSheldon Hearnare considered to be comments. 251f2e366a1SSheldon HearnA 252f7f470a8SBill Paulsample securenets file might look like this: 253f7f470a8SBill Paul.Bd -unfilled -offset indent 254f7f470a8SBill Paul# allow connections from local host -- mandatory 255f7f470a8SBill Paul127.0.0.1 255.255.255.255 256f7f470a8SBill Paul# allow connections from any host 25750aedc81SJustin M. Seger# on the 192.168.128.0 network 258f7f470a8SBill Paul192.168.128.0 255.255.255.0 259f7f470a8SBill Paul# allow connections from any host 260f7f470a8SBill Paul# between 10.0.0.0 to 10.0.15.255 261f7f470a8SBill Paul10.0.0.0 255.255.240.0 262f7f470a8SBill Paul.Ed 263f7f470a8SBill Paul.Pp 264f7f470a8SBill PaulIf 2656ecb7b20SJohn-Mark Gurney.Nm 266f7f470a8SBill Paulreceives a request from an address that matches one of these rules, 267f2e366a1SSheldon Hearnit will process the request normally. 268f2e366a1SSheldon HearnIf the address fails to match 269f7f470a8SBill Paula rule, the request will be ignored and a warning message will be 270f2e366a1SSheldon Hearnlogged. 271f2e366a1SSheldon HearnIf the 272f7f470a8SBill Paul.Pa /var/yp/securenets 273f7f470a8SBill Paulfile does not exist, 2746ecb7b20SJohn-Mark Gurney.Nm 275f7f470a8SBill Paulwill allow connections from any host. 276f7f470a8SBill Paul.Pp 2776ecb7b20SJohn-Mark GurneyThe 2786ecb7b20SJohn-Mark Gurney.Nm 279490d5836SPhilippe Charnierutility also has support for Wietse Venema's 2806ecb7b20SJohn-Mark Gurney.Em tcpwrapper 2819c7e3cbfSMark Murraypackage. 282f2e366a1SSheldon HearnThis allows the administrator to use the tcpwrapper 28394ba280cSRuslan Ermilovconfiguration files 28494ba280cSRuslan Ermilov.Pa ( /etc/hosts.allow 285f7f470a8SBill Pauland 286f7f470a8SBill Paul.Pa /etc/hosts.deny ) 287f7f470a8SBill Paulfor access control instead of 288f7f470a8SBill Paul.Pa /var/yp/securenets . 289f7f470a8SBill Paul.Pp 290f7f470a8SBill PaulNote: while both of these access control mechanisms provide some 291f7f470a8SBill Paulsecurity, they, like the privileged port test, are both vulnerable 2926ecb7b20SJohn-Mark Gurneyto 2936ecb7b20SJohn-Mark Gurney.Dq IP spoofing 2946ecb7b20SJohn-Mark Gurneyattacks. 295778c7b1cSBill Paul.Pp 2969573c1f1SBill Paul.Ss NIS v1 compatibility 2979573c1f1SBill PaulThis version of 2986ecb7b20SJohn-Mark Gurney.Nm 29998834523SPhilippe Charnierhas some support for serving 30098834523SPhilippe Charnier.Tn NIS 30198834523SPhilippe Charnierv1 clients. 30214201ae6SMike PritchardThe 30314201ae6SMike Pritchard.Fx 30498834523SPhilippe Charnier.Tn NIS 30598834523SPhilippe Charnierimplementation only uses the 30698834523SPhilippe Charnier.Tn NIS 30798834523SPhilippe Charnierv2 protocol, however other implementations 3089abcd271SGuido van Rooijinclude support for the v1 protocol for backwards compatibility 309f2e366a1SSheldon Hearnwith older systems. 310f2e366a1SSheldon HearnThe 3119573c1f1SBill Paul.Xr ypbind 8 3129573c1f1SBill Pauldaemons supplied with these systems will try to establish a binding 31398834523SPhilippe Charnierto an 31498834523SPhilippe Charnier.Tn NIS 31598834523SPhilippe Charnierv1 server even though they may never actually need it (and they may 3169573c1f1SBill Paulpersist in broadcasting in search of one even after they receive a 31707bfccd7SRuslan Ermilovresponse from a v2 server). 31807bfccd7SRuslan ErmilovNote that while 3199573c1f1SBill Paulsupport for normal client calls is provided, this version of 3206ecb7b20SJohn-Mark Gurney.Nm 3219573c1f1SBill Pauldoes not handle v1 map transfer requests; consequently, it cannot 32298834523SPhilippe Charnierbe used as a master or slave in conjunction with older 32398834523SPhilippe Charnier.Tn NIS 32498834523SPhilippe Charnierservers that 325f2e366a1SSheldon Hearnonly support the v1 protocol. 3260227791bSRuslan ErmilovFortunately, there probably are not any 3279573c1f1SBill Paulsuch servers still in use today. 328778c7b1cSBill Paul.Ss NIS servers that are also NIS clients 329778c7b1cSBill PaulCare must be taken when running 3306ecb7b20SJohn-Mark Gurney.Nm 331778c7b1cSBill Paulin a multi-server domain where the server machines are also 33298834523SPhilippe Charnier.Tn NIS 333f2e366a1SSheldon Hearnclients. 334f2e366a1SSheldon HearnIt is generally a good idea to force the servers to 335778c7b1cSBill Paulbind to themselves rather than allowing them to broadcast bind 336778c7b1cSBill Paulrequests and possibly become bound to each other: strange failure 337778c7b1cSBill Paulmodes can result if one server goes down and 3384e86fcacSSheldon Hearnothers are dependent upon on it. 3394e86fcacSSheldon Hearn(Eventually all the clients will 340778c7b1cSBill Paultime out and attempt to bind to other servers, but the delay 341778c7b1cSBill Paulinvolved can be considerable and the failure mode is still present 342778c7b1cSBill Paulsince the servers might bind to each other all over again). 343778c7b1cSBill Paul.Pp 344778c7b1cSBill PaulRefer to the 345778c7b1cSBill Paul.Xr ypbind 8 346778c7b1cSBill Paulman page for details on how to force it to bind to a particular 347778c7b1cSBill Paulserver. 348778c7b1cSBill Paul.Sh OPTIONS 349778c7b1cSBill PaulThe following options are supported by 350e97407b4SRuslan Ermilov.Nm : 351778c7b1cSBill Paul.Bl -tag -width flag 352778c7b1cSBill Paul.It Fl n 353778c7b1cSBill PaulThis option affects the way 3546ecb7b20SJohn-Mark Gurney.Nm 355778c7b1cSBill Paulhandles yp_match requests for the 356778c7b1cSBill Paul.Pa hosts.byname 357778c7b1cSBill Pauland 358778c7b1cSBill Paul.Pa hosts.byaddress 359f2e366a1SSheldon Hearnmaps. 360f2e366a1SSheldon HearnBy default, if 3616ecb7b20SJohn-Mark Gurney.Nm 3620227791bSRuslan Ermilovcannot find an entry for a given host in its hosts maps, it will 363f2e366a1SSheldon Hearnreturn an error and perform no further processing. 364f2e366a1SSheldon HearnWith the 365778c7b1cSBill Paul.Fl n 366778c7b1cSBill Paulflag, 3676ecb7b20SJohn-Mark Gurney.Nm 368778c7b1cSBill Paulwill go one step further: rather than giving up immediately, it 369778c7b1cSBill Paulwill try to resolve the hostname or address using a DNS nameserver 370f2e366a1SSheldon Hearnquery. 371f2e366a1SSheldon HearnIf the query is successful, 3726ecb7b20SJohn-Mark Gurney.Nm 373778c7b1cSBill Paulwill construct a fake database record and return it to the client, 374778c7b1cSBill Paulthereby making it seem as though the client's yp_match request 375778c7b1cSBill Paulsucceeded. 376778c7b1cSBill Paul.Pp 37757bd0fc6SJens SchweikhardtThis feature is provided for compatibility with SunOS 4.1.x, 378778c7b1cSBill Paulwhich has brain-damaged resolver functions in its standard C 37998834523SPhilippe Charnierlibrary that depend on 38098834523SPhilippe Charnier.Tn NIS 38198834523SPhilippe Charnierfor hostname and address resolution. 38214201ae6SMike PritchardThe 38314201ae6SMike Pritchard.Fx 38498834523SPhilippe Charnierresolver can be configured to do DNS 385778c7b1cSBill Paulqueries directly, therefore it is not necessary to enable this 38698834523SPhilippe Charnieroption when serving only 38714201ae6SMike Pritchard.Fx 38898834523SPhilippe Charnier.Tn NIS 38998834523SPhilippe Charnierclients. 390778c7b1cSBill Paul.It Fl d 391f2e366a1SSheldon HearnCause the server to run in debugging mode. 392f2e366a1SSheldon HearnNormally, 3936ecb7b20SJohn-Mark Gurney.Nm 394778c7b1cSBill Paulreports only unusual errors (access violations, file access failures) 395778c7b1cSBill Paulusing the 396778c7b1cSBill Paul.Xr syslog 3 397f2e366a1SSheldon Hearnfacility. 398f2e366a1SSheldon HearnIn debug mode, the server does not background 399778c7b1cSBill Paulitself and prints extra status messages to stderr for each 400f2e366a1SSheldon Hearnrequest that it receives. 401f2e366a1SSheldon HearnAlso, while running in debug mode, 4026ecb7b20SJohn-Mark Gurney.Nm 403778c7b1cSBill Paulwill not spawn any additional subprocesses as it normally does 4044e86fcacSSheldon Hearnwhen handling yp_all requests or doing DNS lookups. 4054e86fcacSSheldon Hearn(These actions 406778c7b1cSBill Pauloften take a fair amount of time to complete and are therefore handled 407778c7b1cSBill Paulin subprocesses, allowing the parent server process to go on handling 4084e86fcacSSheldon Hearnother requests.) 4094e86fcacSSheldon HearnThis makes it easier to trace the server with 410778c7b1cSBill Paula debugging tool. 4113868f70eSMatteo Riondato.It Fl P Ar port 4123868f70eSMatteo RiondatoForce ypserv to bind to a specific TCP/UDP port, rather than selecting 4133868f70eSMatteo Riondatoits own. 414778c7b1cSBill Paul.It Fl p Ar path 415778c7b1cSBill PaulNormally, 4166ecb7b20SJohn-Mark Gurney.Nm 41798834523SPhilippe Charnierassumes that all 41898834523SPhilippe Charnier.Tn NIS 41998834523SPhilippe Charniermaps are stored under 420778c7b1cSBill Paul.Pa /var/yp . 421778c7b1cSBill PaulThe 422778c7b1cSBill Paul.Fl p 42398834523SPhilippe Charnierflag may be used to specify an alternate 42498834523SPhilippe Charnier.Tn NIS 42598834523SPhilippe Charnierroot path, allowing 426778c7b1cSBill Paulthe system administrator to move the map files to a different place 427778c7b1cSBill Paulwithin the file system. 428778c7b1cSBill Paul.El 429778c7b1cSBill Paul.Sh FILES 430778c7b1cSBill Paul.Bl -tag -width Pa -compact 431778c7b1cSBill Paul.It Pa /var/yp/[domainname]/[maps] 43298834523SPhilippe Charnierthe 43398834523SPhilippe Charnier.Tn NIS 43498834523SPhilippe Charniermaps 435248aee62SJacques Vidrine.It Pa /etc/nsswitch.conf 436248aee62SJacques Vidrinename switch configuration file 437f7f470a8SBill Paul.It Pa /var/yp/securenets 43898834523SPhilippe Charnierhost access control file 439778c7b1cSBill Paul.El 440778c7b1cSBill Paul.Sh SEE ALSO 441906c1e27SMike Pritchard.Xr ypcat 1 , 442906c1e27SMike Pritchard.Xr db 3 , 4439c7e3cbfSMark Murray.Xr hosts_access 5 , 44432fdc705SMike Pritchard.Xr rpc.yppasswdd 8 , 445491a8429SRuslan Ermilov.Xr yp 8 , 446778c7b1cSBill Paul.Xr ypbind 8 , 44742e3d43bSGuy Helmer.Xr ypinit 8 , 448778c7b1cSBill Paul.Xr yppush 8 , 449906c1e27SMike Pritchard.Xr ypxfr 8 450778c7b1cSBill Paul.Sh HISTORY 451778c7b1cSBill PaulThis version of 4526ecb7b20SJohn-Mark Gurney.Nm 45385cf659aSMike Pritchardfirst appeared in 45485cf659aSMike Pritchard.Fx 2.2 . 45559a3c79dSRuslan Ermilov.Sh AUTHORS 45659a3c79dSRuslan Ermilov.An Bill Paul Aq wpaul@ctr.columbia.edu 457