2 .\" $Id: rpc.ypxfrd.8,v 1.4 2001/12/01 15:25:31 nakano Exp $
4 .\" This manual page is a part of ypserv archive.
5 .\" README states the following
7 .\" See the file COPYING for copying restrictions. It is available under
8 .\" the GNU General Public License.
10 .\" Japanese Version Copyright (c) 1998, 1999 NAKANO Takeo all rights reserved.
11 .\" Translated Mon 23 Nov 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
12 .\" Updated Fri 22 Oct 1999 by NAKANO Takeo
13 .\" Updated Wed 11 Apr 2001 by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
15 .TH RPC.YPXFRD 8 "August 1996" "NYS YP Server" "Linux Reference Manual"
17 .\"O rpc.ypxfrd \- NIS map transfer server
19 rpc.ypxfrd \- NIS ¥Þ¥Ã¥×žÁ÷¥µ¡¼¥Ð¡¼
22 .B /usr/sbin/rpc.ypxfrd
32 .B /usr/sbin/rpc.ypxfrd
39 .\"O is used for speed up the transfer of very large NIS maps from a NIS
40 .\"O master to the NIS slave server. If a NIS slave server receives a
41 .\"O message that there is a new map, it will start
43 .\"O for transfering the new map.
45 .\"O will read the contents of a map from the master server using the yp_all()
46 .\"O function. This process can take several minutes when there are very large
47 .\"O maps which have to be stored by the database library.
49 ¤ÏÈó¾ï¤ËÂç¤¤Ê NIS ¥Þ¥Ã¥×¤ò NIS ¥Þ¥¹¥¿¡¼¤«¤é NIS ¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¡¼¤Ë
50 žÁ÷¤¹¤ëºÝ¤Ë¡¢Å¾Á÷¤ò¹â®²½¤¹¤ë¤¿¤á¤ËÍѤ¤¤é¤ì¤ë¡£
51 NIS ¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¡¼¤Ï¡¢¿·¤·¤¤¥Þ¥Ã¥×¤¬¤¢¤ë¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤ò
52 ¼õ¤±¼è¤ë¤È¡¢¤½¤Î¥Þ¥Ã¥×¤ò¼èÆÀ¤¹¤ë¤¿¤á¤Ë
56 ¤Ï yp_all() ´Ø¿ô¤òÍѤ¤¤Æ¥Þ¥Ã¥×¤ÎÆâÍƤò¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¡¼¤«¤é
57 Æɤ߹þ¤â¤¦¤È¤¹¤ë¡£¤³¤Î¾ðÊó¤Ï¥Ç¡¼¥¿¡¼¥Ù¡¼¥¹¥é¥¤¥Ö¥é¥ê¤ò
58 Ä̤·¤ÆÊݸ¤µ¤ì¤ë¤¿¤á¡¢¥Þ¥Ã¥×¤Î¥µ¥¤¥º¤¬Èó¾ï¤ËÂ礤¯¤Ê¤ë¤È¡¢
59 ¤³¤Î¥×¥í¥»¥¹¤Ï¿ôʬ¤â¤«¤«¤Ã¤Æ¤·¤Þ¤¦¤³¤È¤¬¤¢¤ë¡£
63 .\"O server speeds up the transfer process by allowing NIS slave servers to
64 .\"O simply copy the master server's map files rather than building their
65 .\"O own from scratch.
67 .\"O uses an RPC-based file transfer protocol, so that there is no need
68 .\"O for building a new map.
70 ¥µ¡¼¥Ð¡¼¤Ï¡¢ NIS ¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¡¼¤Ë¥Þ¥¹¥¿¡¼¤Î¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë¤ò
71 ñ½ã¤Ë¥³¥Ô¡¼¤µ¤»¡¢Å¾Á÷¥×¥í¥»¥¹¤ò¹â®²½¤¹¤ë¡£¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¡¼¤¬
72 ¥¼¥í¤«¤é¥Þ¥Ã¥×¤òÀ¸À®¤¹¤ë¤Î¤ËÈæ¤Ù¡¢¤³¤ì¤Ï¤º¤Ã¤Èû»þ´Ö¤Ç¤¹¤à¡£
74 ¤Ï RPC ¥Ù¡¼¥¹¤ÎžÁ÷¥×¥í¥È¥³¥ë¤òÍѤ¤¤ë¤Î¤Ç¡¢¿·¤·¤¤¥Þ¥Ã¥×¤ò
75 À¸À®¤¹¤ëɬÍפϤʤ¯¤Ê¤ë¡£
78 .\"O could be started by inetd. But since it starts very slowly,
79 .\"O it should be started after
81 .\"O from /etc/init.d/ypxfrd.
83 ¤Ï inetd ¤«¤éµ¯Æ°¤¹¤ë¤³¤È¤â¤Ç¤¤ë¤¬¡¢µ¯Æ°¤Ë¤Ï»þ´Ö¤¬¤«¤«¤ë¤Î¤Ç¡¢
85 ¤Î¸å¤Ë /etc/init.d/ypxfrd ¤«¤éµ¯Æ°¤¹¤ë¤Î¤¬Îɤ¤¡£
89 .\"O Causes the server to run in debugging mode. In debug mode, the server
90 .\"O does not background itself and prints extra status messages to stderr
91 .\"O for each request that it revceives.
92 ¥µ¡¼¥Ð¡¼¤ò¥Ç¥Ð¥Ã¥°¥â¡¼¥É¤Çµ¯Æ°¤¹¤ë¡£
93 ¥Ç¥Ð¥Ã¥°¥â¡¼¥É¤Ç¤Ï¡¢¥µ¡¼¥Ð¡¼¤Ï¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤ØÂÔÈò¤»¤º¡¢
94 ¥¢¥¯¥»¥¹Í×µá¤ò¼õ¤±¤ë¤¿¤Ó¤ËºÙ¤«¤Ê¥¹¥Æ¡¼¥¿¥¹¥á¥Ã¥»¡¼¥¸¤ò
95 ɸ½à¥¨¥é¡¼½ÐÎϤËɽ¼¨¤¹¤ë¡£
99 .\"O is using this directory instead of /var/yp
102 ¤¬ÍѤ¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤹ¤ë¡£
106 .\"O will bind itself to this port,
107 .\"O which makes it possible to have a router filter packets
108 .\"O to the NIS ports. This can restricted the access to the NIS server from
109 .\"O hosts on the Internet.
111 ¤¬¥Ð¥¤¥ó¥É¤¹¤ë¥Ý¡¼¥ÈÈÖ¹æ¤ò»ØÄꤹ¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤È¡¢
112 ¥ë¡¼¥¿¤Ë NIS ¥Ý¡¼¥È¤Ø¤Î¥Ñ¥±¥Ã¥È¤ò¥Õ¥£¥ë¥¿¥ê¥ó¥°¤µ¤»¡¢
113 ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤«¤é¤Î NIS ¥µ¡¼¥Ð¡¼¤Ø¤Î¥¢¥¯¥»¥¹¤òÀ©¸Â¤Ç¤¤ë¡£
116 .\"O Prints the version number
117 ¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
121 .\"O uses the same functions for checking a host as
125 .\"O will check a request from an address with
126 .\"O .B /var/yp/securenets
127 .\"O or the tcp wrapper.
128 .\"O If the host is allowed to connect to the server,
130 .\"O will uses the rules from
131 .\"O .B /etc/ypserv.conf
132 .\"O to check the requested map. If a mapname doesn't match a rule,
134 .\"O will look for the YP_SECURE key in the map. If it exists,
136 .\"O will only allow requests on a reserved port.
140 ¤ÈƱ¤¸µ¡Ç½¤òÍѤ¤¤ë¡£¤Þ¤º
143 .B /var/yp/securenets
144 ¤Þ¤¿¤Ï tcp wrapper ¤Ç¥Á¥§¥Ã¥¯¤¹¤ë¡£¥Û¥¹¥È¤Î¥µ¡¼¥Ð¡¼¤Ø¤ÎÀܳ¤¬
145 µö¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
149 ¤«¤éÍ׵ᤵ¤ì¤¿¥Þ¥Ã¥×¤Î¥ë¡¼¥ë¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£¥Þ¥Ã¥×¤Î̾Á°¤¬
150 ¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
152 ¤Ï¤½¤Î¥Þ¥Ã¥×¤Î YP_SECURE ¥¡¼¤òÄ´¤Ù¤ë¡£¥¡¼¤¬Â¸ºß¤·¤Æ¤¤¤ë¤È¡¢
154 ¤ÏÆø¢¥Ý¡¼¥È¤«¤é¤ÎÍ×µá¤À¤±¤òµö²Ä¤¹¤ë¡£
170 .\"O protocol is not compatible with that used by SunOS. This is unfortunate
171 .\"O but unavoidable: Sun's protocol is not freely available, and even if it
172 .\"O were it would probably not be useful since the SunOS NIS v2 implimentation
173 .\"O uses the original ndbm package for its map databases whereas the other
174 .\"O implimentation uses GNU DBM or Berkeley DB. These packages uses vastly
175 .\"O different file formats. Furthermore, ndbm and gdbm are byte-order sensitive
176 .\"O and not very smart about it, meaning that a gdbm or ndbm database created on
177 .\"O a big endian system can't be read on a little endian system. The FreeBSD
179 .\"O protocol checks, if both, master and slave, uses the same database packages
180 .\"O and, if necessary, the byte order of the system.
183 ¥×¥í¥È¥³¥ë¤Ï SunOS ¤Î¤â¤Î¤È¤Ï¸ß´¹À¤¬¤Ê¤¤¡£¤³¤ì¤Ï»ÄÇ°¤Ê¤³¤È¤Ç¤Ï¤¢¤ë¤¬¡¢
184 ÉÔ²ÄÈò¤Ê¤â¤Î¤Ç¤¢¤Ã¤¿¡£ Sun ¤Î¥×¥í¥È¥³¥ë¤Ï¥Õ¥ê¡¼¤ËÆþ¼ê¤Ç¤¤ë¤â¤Î¤Ç¤Ï
185 ¤Ê¤«¤Ã¤¿¤·¡¢²¾¤ËÆþ¼ê¤¬¤Ç¤¤¿¤È¤·¤Æ¤âÍÍѤʤâ¤Î¤Ë¤Ï¤Ê¤ê¤¨¤Ê¤«¤Ã¤¿¤í¤¦¡£
186 ¸å¼Ô¤ÎÍýͳ¤Ï¡¢ SunOS NIS v2 ¤Î¼ÂÁõ¤¬¥Þ¥Ã¥×¤Î¥Ç¡¼¥¿¡¼¥Ù¡¼¥¹¤Ë¥ª¥ê¥¸¥Ê¥ë¤Î
187 ndbm ¥Ñ¥Ã¥±¡¼¥¸¤òÍѤ¤¤Æ¤¤¤ë¤Î¤ËÂФ·¡¢Â¾¤Î¼ÂÁõ¤Ç¤Ï GNU DBM ¤ä Berkeley DB
188 ¤òÍѤ¤¤Æ¤¤¤ë¤«¤é¤Ç¤¢¤ë¡£¤³¤ì¤é¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ï¤Þ¤Ã¤¿¤¯°Û¤Ê¤Ã¤¿¥Õ¥¡¥¤¥ë
189 ¥Õ¥©¡¼¥Þ¥Ã¥È¤òÍѤ¤¤Æ¤¤¤ë¾å¡¢ ndbm ¤È gdbm ¤Ç¤Ï¥Ð¥¤¥È¥ª¡¼¥À¡¼¥ó¤Î°ã¤¤¤ò
190 ¸¤¯°·¤¦¤³¤È¤¬¤Ç¤¤Ê¤¤¡£¤·¤¿¤¬¤Ã¤Æ big endian ¤Ê¥·¥¹¥Æ¥à¤ÇÀ¸À®¤µ¤ì¤¿
191 gdbm ¤ä ndbm ¤Î¥Ç¡¼¥¿¡¼¥Ù¡¼¥¹¤Ï¡¢ little endian ¤Ê¥·¥¹¥Æ¥à¤Ç¤ÏÆɤळ¤È¤¬
192 ¤Ç¤¤Ê¤¤¤Î¤Ç¤¢¤ë¡£ FreeBSD ¤Î
194 ¥×¥í¥È¥³¥ë¤Ï¡¢¥Þ¥¹¥¿¡¼¤È¥¹¥ì¡¼¥Ö¤ÎξÊý¤¬Æ±¤¸¥Ç¡¼¥¿¡¼¥Ù¡¼¥¹¥Ñ¥Ã¥±¡¼¥¸¤ò
195 »È¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¡¢¤Þ¤¿É¬Íפ˱þ¤¸¤Æ¡¢Î¾¥·¥¹¥Æ¥à¤Ç¤Î¥Ð¥¤¥È¥ª¡¼¥À¡¼¤¬Åù¤·¤¤¤«
196 ¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£
200 .\"O ypxfrd protocol and FreeBSD Implementation: Bill Paul <wpaul@ctr.columbia.edu>
202 .\"O Linux Implementation: Thorsten Kukuk <kukuk@suse.de>
203 ypxfrd ¥×¥í¥È¥³¥ë¤È FreeBSD ¤Ø¤Î¼ÂÁõ: Bill Paul <wpaul@ctr.columbia.edu>
205 Linux ¤Ø¤Î¼ÂÁõ: Thorsten Kukuk <kukuk@suse.de>