1 .\" Copyright (c) 1996, 1997, 1999 Thorsten Kukuk <kukuk@suse.de>
2 .\" Copyright (c) 1996, 1997, 1999, 2001 Thorsten Kukuk <kukuk@suse.de>
4 .\" $Id: ypxfr.8,v 1.4 2001/12/01 15:25:31 nakano Exp $
6 .\" This manual page is a part of ypserv archive.
7 .\" README states the following
9 .\" See the file COPYING for copying restrictions. It is available under
10 .\" the GNU General Public License.
12 .\" Japanese Version Copyright (c) 1998, 1999 NAKANO Takeo all rights reserved.
13 .\" Translated Mon 23 Nov 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
14 .\" Updated Fri 22 Oct 1999 by NAKANO Takeo
16 .\"O .TH YPSERV 8 "August 2001" "YP Server" ""
17 .TH YPXFR 8 "August 2001" "YP Server" ""
19 .\"O ypxfr - transfer NIS database from remote server to local host
21 ypxfr \- NIS ¥Ç¡¼¥¿¡¼¥Ù¡¼¥¹¤ò¥ê¥â¡¼¥È¥µ¡¼¥Ð¡¼¤«¤é¥í¡¼¥«¥ë¥Û¥¹¥È¤ËžÁ÷¤¹¤ë
61 .\"O copies an NIS database from one NIS server to the local host by
62 .\"O using the NIS service.
64 ¤Ï NIS ¥Ç¡¼¥¿¡¼¥Ù¡¼¥¹¤ò NIS ¥µ¡¼¥Ð¡¼¤«¤é¥í¡¼¥«¥ë¥Û¥¹¥È¤Ë
65 NIS ¥µ¡¼¥Ó¥¹¤òÍѤ¤¤Æ¥³¥Ô¡¼¤¹¤ë¡£
67 .\"O is generally invoked by
73 .\"O receives a map transfer request from
80 ¤«¤é¥Þ¥Ã¥×žÁ÷Í×µá¤ò¼õ¤±¼è¤Ã¤¿
83 .\"O It creates a temporary map in the directory
84 .\"O .B /var/yp/domain
85 .\"O (this directory must already exist;
87 .\"O is the default domainname for the local host), fills it by getting
88 .\"O the map's entries and fetches the map parameters (master and order number).
92 ¥Ç¥£¥ì¥¯¥È¥ê¤ËÀ¸À®¤· (¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï¸ºß¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
94 ¤Ï¥í¡¼¥«¥ë¥Û¥¹¥È¤Î¥Ç¥Õ¥©¥ë¥È¥É¥á¥¤¥ó̾¤Ç¤¢¤ë)¡¢
95 ¤½¤Î¥Þ¥Ã¥×¤Î¥¨¥ó¥È¥ê¤ò¼èÆÀ¤·¤ÆÆâÍƤò½ñ¤¹þ¤ß¡¢¥Þ¥Ã¥×¤Î¥Ñ¥é¥á¡¼¥¿
96 (¥Þ¥¹¥¿¡¼¤È¥ª¡¼¥À¡¼ÈÖ¹æ) ¤ò¼èÆÀ¤¹¤ë¡£
97 .\"O If the transfer was successful, the old version of the map will be
98 .\"O deleted and the temporary copy will be moved into its place.
101 .\"O will attempt to send a "clear current map" request to the local
103 žÁ÷¤¬À®¸ù¤·¤¿¤é¡¢¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Î¥Þ¥Ã¥×¤Ïºï½ü¤µ¤ì¡¢
104 ¤³¤Î°ì»þŪ¤Ê¥Þ¥Ã¥×¤ÎÆâÍƤ¬¤½¤³¤Ë½ñ¤¹þ¤Þ¤ì¤ë¡£
107 ¤Ï "clear current map" Í×µá¤ò¥í¡¼¥«¥ë¤Î
111 .\"O If run interactively,
113 .\"O writes its output to stderr.
114 .\"O However, if it is invoked without a controlling terminal, it will
115 .\"O log the output to syslog.
116 ¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ê·Á¼°¤Ç¼Â¹Ô¤µ¤ì¤ë¤È¡¢
118 ¤Ï½ÐÎϤòɸ½à¥¨¥é¡¼½ÐÎϤ˽ñ¤½Ð¤¹¡£¤·¤«¤·À©¸æüËö¤Ê¤·¤Ç
119 µ¯Æ°¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢½ÐÎÏ¤Ï syslog ¤ËµÏ¿¤µ¤ì¤ë¡£
122 .\"O is used primarily in environments where several NIS servers are in use.
123 .\"O For all maps, you have a NIS master server, which maintains a canonical
124 .\"O copy of the NIS map, and all the other servers, the NIS slaves, copy
125 .\"O the new version of the map from the master whenever a update was made.
126 .\"O Normally, you have one NIS master for all maps.
128 ¤¬ÍѤ¤¤é¤ì¤ë¤Î¤Ï¡¢Ê£¿ô¤Î NIS ¥µ¡¼¥Ð¡¼¤¬ÍѤ¤¤é¤ì¤Æ¤¤¤ë¤è¤¦¤Ê
129 ´Ä¶¤Ë¤ª¤¤¤Æ¤Ç¤¢¤ë¡£¤¢¤é¤æ¤ë¥Þ¥Ã¥×¤ËÂФ·¤Æ¡¢¤½¤Î¥Þ¥Ã¥×¤Î¸¶Ëܤò
130 ÊÝ»ý¤·¤Æ¤¤¤ë NIS ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¡¼¤¬°ì¤Ä¤À¤±Â¸ºß¤¹¤ë¡£Â¾¤Î¥µ¡¼¥Ð¤Ï
131 ¤¹¤Ù¤Æ NIS ¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¡¼¤È¤Ê¤ê¡¢¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¡¼¤Ç¥Þ¥Ã¥×¤¬
132 ¹¹¿·¤µ¤ì¤ë¤¿¤Ó¤Ë¡¢¿·¤·¤¤ÈǤΥޥåפò¥³¥Ô¡¼¤¹¤ë¡£
133 Ä̾ï¤Ï°ìÂæ¤Î NIS ¥µ¡¼¥Ð¡¼¤Ë¤¹¤Ù¤Æ¤Î¥Þ¥Ã¥×¤Î´ÉÍý¤ò½¸Ã椵¤»¤ë¡£
135 .\"O In order to maintain consistency across all NIS servers,
137 .\"O can be run periodically in a
139 .\"O job. Maps which change infrequently need only be updated once a day
140 .\"O (preferably late at night when system usage is lowest), where those
141 .\"O with frequent changes (such as
142 .\"O .I passwd.byname
144 .\"O .I passwd.byuid )
145 .\"O should be updated perhaps once every hour.
146 ¤³¤ì¤é¤¹¤Ù¤Æ¤Î NIS ¥µ¡¼¥Ð¡¼¤Î´Ö¤Ç¥Þ¥Ã¥×¤ÎÆâÍƤò°ìÃפµ¤»¤Æ¤ª¤¯¤¿¤á¤Ë¤Ï¡¢
150 ¥¸¥ç¥Ö¤È¤·¤ÆÄê´üŪ¤ËÆ°ºî¤µ¤»¤ë¤ÈÎɤ¤¡£¤¢¤Þ¤êÊѹ¹¤µ¤ì¤Ê¤¤¥Þ¥Ã¥×¤Ï
151 °ìÆü¤Ë°ì²ó¹¹¿·¤¹¤ì¤Ð¤è¤¤¤À¤í¤¦¤· (¥·¥¹¥Æ¥à¤Î»ÈÍÑΨ¤¬ºÇÄã¤È¤Ê¤ë¤è¤¦¤Ê
152 ÌëÃÙ¤¯¤¬¹¥¤Þ¤ì¤ë)¡¢ÉÑÈˤËÊѹ¹¤µ¤ì¤ë¥Þ¥Ã¥× (
153 .IR passwd.byname " ¤ä " passwd.byuid
154 ¤Ê¤É) ¤Ï°ì»þ´Ö¤Ë°ì²ó¤¯¤é¤¤¹¹¿·¤¹¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
156 .\"O .B /usr/lib/yp: ypxfr_1perday, ypxfr_2perday,
158 .\"O .B ypxfr_1perhour.
159 .\"O They can serve as reasonable first cuts.
163 .BR ypxfr_1perday ", " ypxfr_2perday ", " ypxfr_1perhour
164 ¤Ê¤É¤Ë¼¨¤·¤Æ¤¢¤ë¡£¤È¤ê¤¢¤¨¤ºÆ°¤«¤·¤Æ¤ß¤ë¤Ë¤Ï¡¢
165 ¤³¤ì¤é¤òÍѤ¤¤Æ¤ß¤ë¤ÈÎɤ¤¤À¤í¤¦¡£
167 .\"O Normally all updates should be propagated by
170 .\"O .B /var/yp/Makefile
171 .\"O is run on the NIS master server, however it is a good practice
172 .\"O on large networks where possible outages could cause NIS slaves to
173 .\"O fall out of sync with the master.
174 NIS ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¡¼¤Ç
179 ¤òÍѤ¤¤ÆÅÁÇŤµ¤»¤ë¤Ù¤¤Ç¤¢¤ë¡£
180 ¤·¤«¤·Â礤ʥͥåȥ¥¯¤Î¾ì¹ç¤Ë¤Ï¡¢ÄÌ¿®¾ã³²¤Ê¤É¤Ë¤è¤Ã¤Æ
181 NIS ¥¹¥ì¡¼¥Ö¤ÎƱ´ü¤¬¥Þ¥¹¥¿¡¼¤È¤º¤ì¤ë¤³¤È¤â¤¢¤ë¤À¤í¤¦¤«¤é¡¢
184 ¤ò»È¤¦¤Î¤ÏÎɤ¤¤³¤È¤Ç¤¢¤ë¡£
187 .\"O The following options are supported:
189 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£
192 .\"O Force a map transfer. Normally,
194 .\"O will not transfer a map if it determines that the NIS master's copy
195 .\"O is not newer than the existing copy already on the local host. This
196 .\"O flag forces a transfer regardless of which server's version is more
198 ¥Þ¥Ã¥×¤ÎžÁ÷¤ò¶¯À©¤¹¤ë¡£Ä̾ï¤ÎÆ°ºî¤Ç¤Ï¡¢
199 NIS ¥Þ¥¹¥¿¡¼¤Ë¤¢¤ë¥Þ¥Ã¥×¤¬¥í¡¼¥«¥ë¥Û¥¹¥È¤Ë¤¹¤Ç¤Ë¸ºß¤¹¤ë¥³¥Ô¡¼¤è¤ê¤â
200 ¿·¤·¤¯¤Ê¤¤¤ÈȽÃǤµ¤ì¤ë¤È¡¢
202 ¤Ï¥Þ¥Ã¥×¤ÎžÁ÷¤ò¹Ô¤ï¤Ê¤¤¡£¤³¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤È¡¢
203 ¤É¤Î¥µ¡¼¥Ð¡¼¤ÎÈǤ¬ºÇ¿·¤Ç¤¢¤ë¤«¤òÌä¤ï¤º¡¢¶¯À©Åª¤ËžÁ÷¤¬¹Ô¤ï¤ì¤ë¡£
206 .\"O Do not send a "clear current map" request to the
208 .\"O process running on the local host. This flag is normally used when
215 .\"O is not running locally at the time you are running
219 .\"O will complain that it cannot talk to the local
221 .\"O and the transfer will fail.
222 ¥í¡¼¥«¥ë¤ÇÆ°ºî¤·¤Æ¤¤¤ë
224 ¥×¥í¥»¥¹¤Ë "clear current map" Í×µá¤òÁ÷¤é¤Ê¤¤¡£
228 ¤«¤éµ¯Æ°¤µ¤ì¤¿¾ì¹ç¤ä¡¢
232 ¤¬Æ°ºî¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ê¤É¤Ë¤ÏÄ̾盧¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¡£¤µ¤â¤Ê¤¤¤È
236 ¤ÈÄÌ¿®¤Ç¤¤Ê¤¤»Ý¤Î¥¨¥é¡¼¤ò½Ð¤·¡¢Å¾Á÷¤Ï¼ºÇÔ¤¹¤ë¡£
239 .\"O Specify a domain other than the default NIS domain.
240 ¥Ç¥Õ¥©¥ë¥È¤Î NIS ¥É¥á¥¤¥ó¤ÎÂå¤ï¤ê¤ËÍѤ¤¤ë¥É¥á¥¤¥ó¤ò»ØÄꤹ¤ë¡£
242 .BI \-h " source host"
243 .\"O Get the map from
245 .\"O regardless of what the map says the master is. If
247 .\"O is not specified,
251 .\"O service for the name of the master, and tries to get the
252 .\"O map from there. This option is used to insure that ypxfr only copies
253 .\"O maps from the NIS master server.
254 ¥Þ¥Ã¥×¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¥Þ¥¹¥¿¡¼¤Î¾ðÊó¤ò̵»ë¤·¤Æ¡¢¥Þ¥Ã¥×¤ò
258 ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
262 ¥µ¡¼¥Ó¥¹¤Ë¥Þ¥¹¥¿¡¼¤Î̾Á°¤òÌ䤤¹ç¤ï¤»¤Æ¡¢¤½¤³¤«¤é¥Þ¥Ã¥×¤ò¼èÆÀ¤·¤è¤¦¤È¤¹¤ë¡£
265 ¤¬¥Þ¥Ã¥×¤Î¼èÆÀÀè¤È¤¹¤ë NIS ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¡¼¤òÊݾڤ¹¤ë¤¿¤á¤ËÍѤ¤¤é¤ì¤ë¡£
267 .BI \-s " source domain"
268 .\"O Specify a source domain from which to transfer a map that should be the same
270 ¥Þ¥Ã¥×¤Î¼èÆÀÀè¤È¤¹¤ë¥½¡¼¥¹¥É¥á¥¤¥ó¤ò»ØÄꤹ¤ë¡£
271 ¤½¤Î¥Þ¥Ã¥×¤ò¥É¥á¥¤¥ó¤òÄ̤·¤ÆƱ¤¸¤â¤Î¤È¤·¤¿¤¤¾ì¹ç¤Ë͸ú¡£
273 .BI \-C " taskid progam-number ipaddr port"
282 .\"O it specifies that
284 .\"O should call back a
286 .\"O process at the host with
290 .\"O registered as program number
291 .\"O .IR progam-number ,
292 .\"O listening on port
294 .\"O and waiting for a response to transaction
298 ¤Ë¤è¤Ã¤Æ\fB¤Î¤ß\fPÍѤ¤¤é¤ì¤ë¡£
306 ¥×¥í¥»¥¹¤ò¥³¡¼¥ë¥Ð¥Ã¥¯¤¹¤ëÀè (
310 ¤Î¥Û¥¹¥È¤Î¡¢Í½ÌóºÑ¤ß¥×¥í¥°¥é¥àÈÖ¹æ
316 ¤Ø¤Î¥ì¥¹¥Ý¥ó¥¹¤òÂԤäƤ¤¤ë)
320 .\"O Change the directory for the maps to
321 .\"O \fIyp_path/[domainname]/\fP, the default
322 .\"O is \fI/var/yp/[domainname]\fP.
323 ¥Þ¥Ã¥×¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò
324 .I yp_path/[domainname]
325 ¤ËÊѹ¹¤¹¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï
326 .I /var/yp/[domainname]
330 .\"O One or more names of the map to transfer.
331 žÁ÷¤¹¤ë¥Þ¥Ã¥×¤Î̾Á°¤ò»ØÄꤹ¤ë (Ê£¿ô»ØÄê²Ä)¡£
334 /var/yp/[domainname]/[maps]
344 Thorsten Kukuk <kukuk@suse.de>