OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / ypserv / draft / man8 / ypserv.8
1 .\" -*- nroff -*-
2 .\" $Id: ypserv.8,v 1.4 2004/02/23 18:56:53 ysato Exp $
3 .\" 
4 .\" This manual page is a part of ypserv archive. 
5 .\" README states the following
6 .\"
7 .\" See the file COPYING for copying restrictions. It is available under
8 .\" the GNU General Public License.
9 .\"
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 Sun 02 Dec 2001 by NAKANO Takeo
14 .\"
15 .TH YPSERV 8 "April 1997" "NYS YP Server" "Linux Reference Manual"
16 .\"O .SH NAME
17 .\"O ypserv \- NIS server
18 .SH Ì¾Á°
19 ypserv \- NIS ¥µ¡¼¥Ð¡¼
20 .\"O .SH SYNOPSIS
21 .SH ½ñ¼°
22 .B /usr/sbin/ypserv
23 [
24 .B \-d
25 [
26 .B path
27 ] ]
28 [
29 .B \-p port
30 ]
31 .LP
32 .\"O .SH DESCRIPTION
33 .SH ÀâÌÀ
34 .IX  "ypserv"  ""  "\fLypserv\fP \(em NIS server process"
35 .LP
36 .\"O The
37 .\"O Network Information Service (NIS)
38 .\"O provides a simple network lookup service
39 .\"O consisting of databases and processes.  The databases are
40 .\"O .B gdbm
41 .\"O files in a directory tree rooted at
42 .\"O .BR /var/yp .
43 Network Information Service (NIS) ¤Ï¡¢
44 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤È¤½¤ì¤é¤ò°·¤¦¥×¥í¥»¥¹¤È¤«¤é¤Ê¤ë
45 ¥·¥ó¥×¥ë¤Ê¥Í¥Ã¥È¥ï¡¼¥¯¸¡º÷¥µ¡¼¥Ó¥¹¤Ç¤¢¤ë¡£
46 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ï
47 .B gdbm
48 ·Á¼°¤Î¥Õ¥¡¥¤¥ë¤Ç¡¢
49 .B /var/yp
50 °Ê²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤ËÃÖ¤«¤ì¤ë¡£
51 .LP
52 .\"O The
53 .\"O .B ypserv
54 .\"O daemon is typically activated at system startup.
55 .B ypserv
56 ¥Ç¡¼¥â¥ó¤Ï¡¢Ä̾亮¥¹¥Æ¥à¤Î¥¹¥¿¡¼¥È¥¢¥Ã¥×¤Î»þ¤Ëµ¯Æ°¤µ¤ì¤ë¡£
57 .\"O .B ypserv
58 .\"O runs only on
59 .\"O .SM NIS
60 .\"O server machines with a complete
61 .\"O .SM NIS
62 .\"O database. On other machines using the
63 .\"O .SM NIS
64 .\"O services, you have to run
65 .\"O .B ypbind
66 .\"O as client or under Linux you could use the libc with
67 .\"O .SM NYS
68 .\"O support.
69 .B ypserv
70 ¤Ï¡¢´°Á´¤Ê
71 .SM NIS
72 ¥Ç¡¼¥¿¡¼¥Ù¡¼¥¹¤òÊݴɤ¹¤ë
73 .SM NIS
74 ¥µ¡¼¥Ð¡¼¥Þ¥·¥ó¤Ç¤Î¤ß¼Â¹Ô¤µ¤ì¤ë¡£
75 .SM NIS
76 ¥µ¡¼¥Ó¥¹¤òÍøÍѤ¹¤ë¾¤Î¥Þ¥·¥ó¤Ç¤Ï¡¢¥¯¥é¥¤¥¢¥ó¥È¤È¤·¤Æ
77 .B ypbind
78 ¤òÆ°ºî¤·¤µ¤¨¤¹¤ì¤Ð¤è¤¤¡£¤¢¤ë¤¤¤Ï Linux ¤Ê¤é
79 .SM NYS
80 ¤Î¥µ¥Ý¡¼¥È¤µ¤ì¤¿ libc ¤òÍѤ¤¤Æ¤â¤è¤¤¡£
81 .\"O .B ypbind
82 .\"O must run on every machine which has
83 .\"O .SM NIS
84 .\"O client processes;
85 .\"O .B ypserv
86 .\"O may or may not be running on the same node,
87 .\"O but must be running somewhere
88 .\"O on the network. On startup or when receiving the signal SIGHUP,
89 .\"O .B ypserv
90 .\"O parses the file
91 .\"O .B /etc/ypserv.conf.
92 .B ypbind
93 ¤Ï
94 .SM NIS
95 ¥¯¥é¥¤¥¢¥ó¥È¥×¥í¥»¥¹¤ÎÆ°ºî¤¹¤ë¤¹¤Ù¤Æ¤Î¥Þ¥·¥ó¤Çµ¯Æ°¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
96 ¤½¤ÎºÝ
97 .B ypserv
98 ¤ÎÆ°ºî¤·¤Æ¤¤¤ë¥Þ¥·¥ó¤Ï¡¢
99 ¥Í¥Ã¥È¥ï¡¼¥¯¤ÎƱ¤¸¥Î¡¼¥É¤Ç¤â¾¤Î¥Î¡¼¥É¤Ç¤â¤«¤Þ¤ï¤Ê¤¤¤¬¡¢
100 ɬ¤º¥Í¥Ã¥È¥ï¡¼¥¯¤Î¤É¤³¤«¤Ë¸ºß¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
101 ¥¹¥¿¡¼¥È¥¢¥Ã¥×¤Î»þ¤ä SIGHUP ¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤Ã¤¿»þ¤Ë¤Ï¡¢
102 .B ypserv
103 ¤Ï
104 .B /etc/ypserv.conf
105 ¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ß¡¢¤½¤ÎÆâÍƤò²ò¼á¤·¤ÆÍøÍѤ¹¤ë¡£
106 .LP
107 .\"O .SH OPTIONS
108 .SH ¥ª¥×¥·¥ç¥ó
109 .TP
110 .B "\-d" "\-\-debug" "[path]"
111 .\"O Causes the server to run in debugging mode. Normally,
112 .\"O .B ypserv
113 .\"O reports only errors (access violations, dbm failures)
114 .\"O using the syslog(3) facility. In debug mode, the server does not
115 .\"O background itself and prints extra status messages to stderr for
116 .\"O each request that it revceives.
117 .\"O .B path
118 .\"O is an optionally parameter.
119 .\"O .B ypserv
120 .\"O is using this directory instead of /var/yp
121 ¥µ¡¼¥Ð¡¼¤ò¥Ç¥Ð¥Ã¥°¥â¡¼¥É¤Çµ¯Æ°¤¹¤ë¡£
122 Ä̾ï
123 .B ypserv
124 ¤Ï
125 .BR syslog (3)
126 ¤òÄ̤·¤Æ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ (¥¢¥¯¥»¥¹¸¢¤Î¿¯³²¤ä dbm ¤Î¾ã³²¤Ê¤É) ¤Î¤ß¤ò
127 Êó¹ð¤¹¤ë¡£¤³¤ì¤ËÂФ·¤Æ¥Ç¥Ð¥Ã¥°¥â¡¼¥É¤Ç¤Ï¡¢
128 ¥µ¡¼¥Ð¡¼¤Ï¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤ØÂÔÈò¤»¤º¡¢
129 ¥¢¥¯¥»¥¹Í×µá¤ò¼õ¤±¤ë¤¿¤Ó¤ËºÙ¤«¤Ê¥¹¥Æ¡¼¥¿¥¹¥á¥Ã¥»¡¼¥¸¤ò
130 ɸ½à¥¨¥é¡¼½ÐÎϤËɽ¼¨¤¹¤ë¡£
131 .B path
132 ¤Ï¾Êά²Äǽ¤Ê¥Ñ¥é¥á¡¼¥¿¤Ç¡¢»ØÄꤹ¤ë¤È
133 .B ypserv
134 ¤Ï¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò /var/yp ¤ÎÂå¤ï¤ê¤ËÍøÍѤ¹¤ë¡£
135 .TP
136 .B "\-p" "\-\-port"  port
137 .\"O .B ypserv
138 .\"O will bind itself to this port.
139 .\"O This makes it possible to have a router filter packets
140 .\"O to the NIS ports, so that access to the NIS server from
141 .\"O hosts on the Internet can be restricted.
142 .B ypserv
143 ¤¬¥Ð¥¤¥ó¥É¤¹¤ë¥Ý¡¼¥ÈÈÖ¹æ¤ò»ØÄꤹ¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤È¡¢
144 ¥ë¡¼¥¿¤Ë NIS ¥Ý¡¼¥È¤Ø¤Î¥Ñ¥±¥Ã¥È¤ò¥Õ¥£¥ë¥¿¥ê¥ó¥°¤µ¤»¡¢
145 ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤«¤é¤Î NIS ¥µ¡¼¥Ð¡¼¤Ø¤Î¥¢¥¯¥»¥¹¤òÀ©¸Â¤Ç¤­¤ë¡£
146 .TP
147 .B "\-v" "\-\-version"
148 .\"O Prints the version number
149 ¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
150 .\"O .SH SECURITY
151 .SH ¥»¥­¥å¥ê¥Æ¥£
152 .\"O In general, any remote user can issue an RPC to
153 .\"O .B ypserv
154 .\"O and retrieve the contents of your NIS maps, if he knows your
155 .\"O domain name. To prevent such unauthorized transactions,
156 .\"O .B ypserv
157 .\"O supports a feature called
158 .\"O .B securenets
159 .\"O which can be used to restrict access to a given set of hosts.
160 .\"O At startup or when arriving the SIGHUP Signal,
161 .\"O .B ypserv
162 .\"O will attempt to load the securenets information from a file
163 .\"O called
164 .\"O .B /var/yp/securenets .
165 .\"O This file contains entries that consist of a netmask
166 .\"O and a network pair separated by white spaces.
167 .\"O Lines starting with ``#'' are considered to be comments.
168 ¤¤¤Ã¤¿¤ó¥É¥á¥¤¥ó¥Í¡¼¥à¤¬¤ï¤«¤Ã¤Æ¤·¤Þ¤¦¤È¡¢¥ê¥â¡¼¥È¥æ¡¼¥¶¡¼¤Ïï¤Ç¤â
169 .B ypserv
170 ¤Ø¤Î RPC ¤òȯ¹Ô¤·¤Æ¡¢ NIS ¥Þ¥Ã¥×¤ÎÆâÍƤòÆþ¼ê¤Ç¤­¤Æ¤·¤Þ¤¦¡£
171 ¤³¤Î¤è¤¦¤Ê¡¢ËÜÍèµö²Ä¤µ¤ì¤ë¤Ù¤­¤Ç¤Ê¤¤¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤òËɤ°¤¿¤á¤Ë¡¢
172 .B ypserv
173 ¤Ç¤Ï
174 .B securenets
175 ¤È¤¤¤¦µ¡Ç½¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤ª¤ê¡¢»ØÄꤵ¤ì¤¿¥Û¥¹¥È°Ê³°¤«¤é¤Î¥¢¥¯¥»¥¹¤ò
176 À©¸Â¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£µ¯Æ°»þ¤ä SIGHUP ¥·¥°¥Ê¥ë¤ò¼õ¤±¤¿»þ¤Ë¡¢
177 .B ypserv
178 ¤Ï
179 .B /var/yp/securenets
180 ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤«¤é securenets ¾ðÊó¤ò¥í¡¼¥É¤·¤è¤¦¤È»î¤ß¤ë¡£
181 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¤È¥Í¥Ã¥È¥Þ¥¹¥¯¤ÎÁȤò¡¢¥¹¥Ú¡¼¥¹¤Ç
182 ¶èÀڤ俤â¤Î¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¡£``#'' ¤Ç»Ï¤Þ¤ë¹Ô¤Ï¥³¥á¥ó¥È¤È
183 ¤ß¤Ê¤µ¤ì¤ë¡£
184 .TP
185 .\"O A sample securenets file might look like this:
186 °Ê²¼¤Ë securenets ¥Õ¥¡¥¤¥ë¤Î´Êñ¤ÊÎã¤ò¼¨¤¹¡£
187
188 # allow connections from local host -- necessary
189 .br
190 host 127.0.0.1
191 .br
192 # same as 255.255.255.255 127.0.0.1
193 .br
194 #
195 .br
196 # allow connections from any host
197 .br
198 # on the 131.234.223.0 network
199 .br
200 255.255.255.0   131.234.223.0
201 .br
202 # allow connections from any host
203 .br
204 # between 131.234.214.0 and 131.234.215.255
205 .br
206 255.255.254.0   131.234.214.0
207 .LP
208 .\"O If
209 .\"O .B ypserv
210 .\"O receives a request from an address that fails to match a rule,
211 .\"O the request will be ignored and a warning message will be
212 .\"O logged. If the
213 .\"O .B /var/yp/securenets
214 .\"O file does not exist,
215 .\"O .B ypserv
216 .\"O will allow connections from any host.
217 .B ypserv
218 ¤¬¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤Ê¤«¤Ã¤¿¥¢¥É¥ì¥¹¤«¤é¤ÎÍ×µá¤ò¼õ¤±¼è¤ë¤È¡¢
219 ¤½¤ÎÍ×µá¤Ï̵»ë¤µ¤ì¡¢·Ù¹ð¥á¥Ã¥»¡¼¥¸¤¬¥í¥°¤Ëµ­Ï¿¤µ¤ì¤ë¡£
220 .B /var/yp/securentes
221 ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
222 .B ypserv
223 ¤Ï¤¹¤Ù¤Æ¤Î¥Û¥¹¥È¤«¤é¤ÎÀܳ¤òµö²Ä¤¹¤ë¡£
224 .LP
225 .\"O In the
226 .\"O .B /etc/ypserv.conf
227 .\"O you could specify some access rules for special maps and hosts. But
228 .\"O it is not very secure, it makes the life only a little bit harder
229 .\"O for a potential hacker. If a mapname doesn't match a rule, ypserv will
230 .\"O look for the YP_SECURE key in the map. If it exists, ypserv will
231 .\"O only allow requests on a reserved port.
232 .B /etc/ypserv.conf
233 ¤Ë¡¢Æüì¤Ê¥Þ¥Ã¥×¤ä¥Û¥¹¥È¤ËÂФ¹¤ë¥¢¥¯¥»¥¹¥ë¡¼¥ë¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë¡£
234 ¤·¤«¤·¤³¤ì¤Ïɬ¤º¤·¤â°ÂÁ´¤Ç¤Ï¤Ê¤¯¡¢¥¯¥é¥Ã¥«¡¼¤«¤é¤Î¥¢¥¿¥Ã¥¯¤ò¿¾¯ÌÌÅݤË
235 ¤µ¤»¤ë¤À¤±¤Ë¤¹¤®¤Ê¤¤¡£ mapname ¤¬¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤¤È¡¢
236 .B ypserv
237 ¤Ï¤½¤Î¥Þ¥Ã¥×¤Î YPSECURE ¥­¡¼¤ò¸«¤ë¡£¥­¡¼¤¬Â¸ºß¤¹¤ì¤Ð¡¢
238 .B ypserv
239 ¤ÏÆø¢¥Ý¡¼¥È¤«¤é¤ÎÍ×µá°Ê³°¤òµö²Ä¤·¤Ê¤¤¡£
240
241 .\"O For security reasons, ypserv will only accept ypproc_xfr requests for
242 .\"O updating maps from the same master server as the old one. This means,
243 .\"O you have to reinstall the slave servers if you change the master server
244 .\"O for a map.
245 ¥»¥­¥å¥ê¥Æ¥£¾å¤ÎÍýͳ¤«¤é¡¢
246 .B ypserv
247 ¤Ï¥Þ¥Ã¥×¹¹¿·¤Î¤¿¤á¤ËÍѤ¤¤é¤ì¤ë ypproc_xfr Í×µá¤ò¡¢°ÊÁ°¤ÈƱ¤¸
248 ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¡¼¤«¤é¤·¤«¼õ¤±¤Ä¤±¤Ê¤¤¡£¤Ä¤Þ¤ê¡¢¤¢¤ë¥Þ¥Ã¥×¤ËÂФ¹¤ë
249 ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¡¼¤Ï
250 ºÆ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ë¡£
251 .\"O .SH FILES
252 .SH ¥Õ¥¡¥¤¥ë
253 /etc/ypserv.conf
254 /var/yp/securenets
255 .\"O .SH "SEE ALSO"
256 .SH ´ØÏ¢¹àÌÜ
257 .BR domainname (1),
258 .BR ypcat (1),
259 .BR ypmatch (1),
260 .BR ypserv.conf (5),
261 .BR netgroup (5),
262 .BR makedbm (8),
263 .BR revnetgroup (8),
264 .BR ypinit (8),
265 .BR yppoll (8),
266 .BR yppush (8),
267 .BR ypset (8),
268 .BR ypwhich (8),
269 .BR ypxfr (8),
270 .BR rpc.ypxfrd (8)
271 .LP
272 .\"O The Network Information Service
273 .\"O (\s-1NIS\s0)
274 .\"O was formerly known as Sun Yellow Pages
275 .\"O (\s-1YP\s0).
276 .\"O The functionality of the two remains the same;
277 .\"O only the name has changed.
278 .\"O The name Yellow Pages is a registered trademark in the United Kingdom
279 .\"O of British Telecommunications plc,
280 .\"O and may not be used without permission.
281 Network Information Service
282 (\s-1NIS\s0)
283 ¤Ï¡¢°ÊÁ°¤Ï Sun Yellow Pages
284 (\s-1YP\s0).
285 ¤È¸Æ¤Ð¤ì¤Æ¤¤¤¿¡£
286 ¤³¤Îξ¼Ô¤Îµ¡Ç½¤Ï¤Þ¤Ã¤¿¤¯Æ±¤¸¤â¤Î¤Ç¤¢¤ê¡¢Ì¾Á°¤¬°ã¤¦¤À¤±¤Ç¤¢¤ë¡£
287 Yellow Pages ¤È¤¤¤¦Ì¾Á°¤Ï¡¢±Ñ¹ñ¤Ç
288 British Telecommunications plc ¤ÎÅÐÏ¿¾¦É¸¤È¤Ê¤Ã¤Æ¤ª¤ê¡¢
289 µö²Ä¤òÆÀ¤º¤ËÍѤ¤¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
290 .\"O .SH AUTHOR
291 .SH Ãø¼Ô
292 .\"O .B ypserv
293 .\"O was written by Peter Eriksson <pen@lysator.liu.se>.
294 .\"O Thorsten Kukuk <kukuk@suse.de> added support for master/slave
295 .\"O server and is the new Maintainer.
296 .B ypserv
297 ¤Ï Peter Eriksson <pen@lysator.liu.se> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£
298 Thorsten Kukuk <kukuk@suse.de> ¤¬¥Þ¥¹¥¿¡¼/¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Î
299 ¥µ¥Ý¡¼¥È¤òÄɲä·¡¢¸½ºß¤Î¥á¥ó¥Æ¥Ê¥ó¥¹¤ò¹Ô¤Ã¤Æ¤¤¤ë¡£