2 .\" Original manual page is a part of nfs-server package.
3 .\" Following is a exerpt from README of version 2.2beta47.
7 .\" Much of the code in this package was originally written by
8 .\" Mark Shand, and is placed under the following copyright:
10 .\" This software may be used for any purpose provided
11 .\" the above copyright notice is retained. It is
12 .\" supplied as is, with no warranties expressed or
15 .\" Other code, especially that written by Rick Sladkey and some
16 .\" replacement routines included from the GNU libc, are covered
17 .\" by the GNU General Public License, version 2, or (at your
18 .\" option) any later version.
20 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
21 .\" Translated Wed 11 Nov 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
22 .\" Updated & Modified Sun Jan 27 17:30:35 JST 2002
23 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
24 .\" Modified Tue Feb 19 19:06:53 JST 2002 by Yuichi SATO
26 .TH NFSD 8 "11 August 1997"
28 .\"O nfsd \- NFS service daemon
30 nfsd \- NFS ¥µ¡¼¥Ó¥¹¥Ç¡¼¥â¥ó
35 .B "[\ \-f\ exports-file\ ]"
36 .B "[\ \-d\ facility\ ]"
38 .B "[\ \-R\ dirname\ ]"
39 .B "[\ \-Fhlnprstv\ ]"
40 .B "[\ \-\-debug\ facility\ ]"
41 .B "[\ \-\-exports\-file=file\ ]"
42 .B "[\ \-\-foreground\ ]"
44 .B "[\ \-\-allow\-non\-root\ ]"
45 .B "[\ \-\-re\-export\ ]"
46 .B "[\ \-\-public\-root\ dirname\ ]"
47 .\".B "[\ \-\-synchronous\-writes\ ]"
48 .B "[\ \-\-no\-spoof\-trace\ ]"
49 .B "[\ \-\-port\ port\ ]"
50 .B "[\ \-\-log-transfers\ ]"
51 .B "[\ \-\-version\ ]"
52 .\" TN.B "[ numservers ]"
59 .\"O program is an NFS service daemon that handles client filesystem requests.
60 .\"O Unlike on some other systems,
62 .\"O operates as a normal user-level process.
63 .\"O The server also differs from other NFS server implementations
64 .\"O in that it mounts an entire file hierarchy
65 .\"O not limited by the boundaries of physical file-systems.
66 .\"O The implementation allows the clients read-only or
67 .\"O read-write access to the file hierarchy of the server machine.
69 ¥×¥í¥°¥é¥à¤Ï NFS ¥µ¡¼¥Ó¥¹¥Ç¡¼¥â¥ó¤Ç¤¢¤ê¡¢¥¯¥é¥¤¥¢¥ó¥È¤«¤é¤Î
70 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÍ×µá¤ò¼è¤ê°·¤¦¡£
71 ¾¤Î¥·¥¹¥Æ¥à¤È°Û¤Ê¤ê¡¢¤³¤Î
73 ¤ÏÉáÄ̤Υ桼¥¶¡¼¥ì¥Ù¥ë¥×¥í¥»¥¹¤È¤·¤ÆÆ°ºî¤¹¤ë¡£
74 ¤Þ¤¿¤³¤Î¥µ¡¼¥Ð¡¼¤Ï¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎʪÍýŪ¤Ê¶³¦¤ËÀ©¸Â¤µ¤ì¤º¡¢
75 ¥Õ¥¡¥¤¥ë³¬Áؤ¹¤Ù¤Æ¤ò¥Þ¥¦¥ó¥È¤µ¤»¤ëÅÀ¤Ç¤â¡¢Â¾¤Î¥·¥¹¥Æ¥à¤È¤Ï°Û¤Ê¤Ã¤Æ¤¤¤ë¡£
76 ¤³¤Î¼ÂÁõ¤Ç¤Ï¡¢¥µ¡¼¥Ð¡¼¥Þ¥·¥ó¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à³¬ÁؤËÂФ·¤Æ¡¢
77 ¥¯¥é¥¤¥¢¥ó¥È¤Ë¤è¤ë read-only ¥¢¥¯¥»¥¹¡¢read-write ¥¢¥¯¥»¥¹¤Î¤¤¤º¤ì¤â
78 ¹Ô¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
82 .\"O program starts an ancillary user-level mount daemon.
84 ¥×¥í¥°¥é¥à¤Ï¡¢Êä½õŪ¤ÊÌò³ä¤ò¤¹¤ë¥æ¡¼¥¶¡¼¥ì¥Ù¥ë¤Î
85 mount ¥Ç¡¼¥â¥ó¤òµ¯Æ°¤¹¤ë¡£
87 .\"O .SS Running from inetd
88 .SS "inetd ¤«¤é¤Îµ¯Æ°"
91 .\"O will be started at system boot time. However, you may also invoke it from
93 .\"O by adding the following two lines to
94 .\"O .IR /etc/inetd.conf :
97 ¤Ï¥·¥¹¥Æ¥à¤Î¥Ö¡¼¥È»þ¤Ëµ¯Æ°¤µ¤ì¤ë¤¬¡¢
99 ¤«¤éµ¯Æ°¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
100 ¤½¤ì¤Ë¤Ï°Ê²¼¤Î 2 ¹Ô¤ò
106 nfs/2 dgram rpc/udp wait root /usr/sbin/rpc.nfsd rpc.nfsd
107 nfs/2 stream rpc/tcp wait root /usr/sbin/rpc.nfsd rpc.nfsd
113 .\"O will terminate after a certain period of inactivity.
115 ¤«¤éµ¯Æ°¤·¤¿¾ì¹ç¤Ë¤Ï¡¢Å¬Åö¤Ê´ü´Ö¤ËÆ°ºîÍ׵᤬¤Ê¤¤¤È
121 .\"O .BR \-f " or " \-\-exports\-file
122 .BR \-f " ¤Þ¤¿¤Ï " \-\-exports\-file
123 .\"O This option specifies the exports file, listing the clients that this server
124 .\"O is prepared to serve and parameters to apply to each such mount (see
126 .\"O By default exports are read from
127 .\"O .IR /etc/exports .
128 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥¨¥¯¥¹¥Ý¡¼¥È¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ë¡£
129 ¥¨¥¯¥¹¥Ý¡¼¥È¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢¤³¤Î¥µ¡¼¥Ð¡¼¤¬¥µ¡¼¥Ó¥¹¤òÄ󶡤¹¤ë¥¯¥é¥¤¥¢¥ó¥È
130 ¤È¡¢¤½¤ì¤¾¤ì¤Î¥Þ¥¦¥ó¥È¤ËÂФ·¤ÆŬÍѤµ¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤¬¥ê¥¹¥È¤µ¤ì¤Æ¤¤¤ë
131 (exports (5) ¤ò¸«¤è)¡£
132 ¥Ç¥Õ¥©¥ë¥È¤Î¥¨¥¯¥¹¥Ý¡¼¥È¥Õ¥¡¥¤¥ë¤Ï
136 .\"O .BR "\-d facility" " or " "\-\-debug facility"
137 .BR "\-d facility" " ¤Þ¤¿¤Ï " "\-\-debug facility"
138 .\"O Log operations verbosely. Legal values for
142 .\"O for the logging of RPC calls and arguments,
144 .\"O for the file handle cache operation,
146 .\"O for the authentication routines, and
148 .\"O for the uid mapping code, if used. Debug messages will be logged to
150 .\"O unless the daemon runs in the foreground.
151 ¤½¤ì¤¾¤ì¤Î¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ËÂФ¹¤ë¾ÜºÙ¤ÊÆâÍƤòɸ½à¥¨¥é¡¼½ÐÎÏ¤Ë¥í¥°É½¼¨¤¹¤ë¡£
152 \fIfacility\fP ¤Ë»ØÄê¤Ç¤¤ë¤Î¤Ï¡¢
154 (¤¹¤Ù¤Æ¤Î¥³¡¼¥ë¤òµÏ¿)¡¢
156 (¥¯¥é¥¤¥¢¥ó¥È¤Îǧ¾Ú)¡¢
158 (¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤Î¥¥ã¥Ã¥·¥åÁàºî)¡¢
162 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥Ç¡¼¥â¥ó¤¬¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ç¼Â¹Ô¤µ¤ì¤Ê¤±¤ì¤Ð¡¢
163 ¥í¥°½ÐÎÏ¤Ï syslogd ¤ËÁ÷¤é¤ì¤ë¡£
165 .\"O .BR \-F " or " \-\-foreground
166 .BR \-F " ¤Þ¤¿¤Ï " \-\-foreground
167 .\"O Unlike in normal operation,
169 .\"O will not detach from the terminal when given this option. When debugging
170 .\"O is requested, it will be sent to standard error.
173 ¤ÏüËö¤«¤éʬΥ (detach) ¤¹¤ë¤¬¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤ë¤ÈʬΥ¤·¤Ê¤¤¡£
174 ¤³¤Î¤È¤ debug ¾ðÊó¤Ïɸ½à¥¨¥é¡¼½ÐÎϤËɽ¼¨¤µ¤ì¤ë¡£
176 .\"O .BR \-h " or " \-\-help
177 .BR \-h " ¤Þ¤¿¤Ï " \-\-help
178 .\"O Provide a short help summary.
179 ¥Ø¥ë¥×¤Îû¤¤Í×Ìó¤òɽ¼¨¤¹¤ë¡£
181 .\"O .BR \-l " or " \-\-log-transfers
182 .BR \-l " ¤Þ¤¿¤Ï " \-\-log-transfers
183 .\"O Tries to catch all files retrieved from and written the NFS server. This
184 .\"O is mainly for the benefit of anonymous NFS exports and is intended to
187 .\"O file supported by some FTP daemons. For each file store or retrieve,
188 .\"O a single line is written to the system log daemon containing the
189 .\"O client's IP address, and the file name. The log level of these
190 .\"O transfer records is
191 .\"O .BR daemon.info .
192 NFS ¥µ¡¼¥Ð¡¼¤«¤é¼è¤ê½Ð¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¢¤¢¤ë¤¤¤Ï¥µ¡¼¥Ð¤Ø½ñ¤¹þ¤Þ¤ì¤¿
193 ¥Õ¥¡¥¤¥ë¤ò¤¹¤Ù¤Æ¥í¥°¤Ë½ñ¤¹þ¤â¤¦¤È¤¹¤ë¡£
194 ¤³¤ì¤Ï¼ç¤È¤·¤Æ anonymous NFS ¥¨¥¯¥¹¥Ý¡¼¥È¤ËÍÍѤǡ¢
195 ¤¢¤ë¼ï¤Î FTP ¥Ç¡¼¥â¥ó¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë
197 ¤ò¤Þ¤Í¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¢¤ë¡£
198 ¥Õ¥¡¥¤¥ë¤¬½ñ¤¹þ¤ß¡¦¼è¤ê½Ð¤·¤µ¤ì¤ë¤¿¤Ó¡¢
199 syslog ¥Ç¡¼¥â¥ó¤Ë°ì¹Ô¤Î¾ðÊó¤¬Á÷¤é¤ì¡¢
200 ¤½¤³¤Ë¤Ï¥¯¥é¥¤¥¢¥ó¥È¤Î IP ¥¢¥É¥ì¥¹¤È¥Õ¥¡¥¤¥ë̾¤¬½ñ¤¹þ¤Þ¤ì¤ë¡£
201 ¤³¤ÎžÁ÷µÏ¿¤Î¥í¥°¥ì¥Ù¥ë¤Ï
205 .\"O .BR \-n " or " \-\-allow\-non\-root
206 .BR \-n " ¤Þ¤¿¤Ï " \-\-allow\-non\-root
207 .\"O Allow incoming NFS requests to be honored even if they do not
208 .\"O originate from reserved IP ports. Some older NFS client implementations
209 .\"O require this. Some newer NFS client implementations don't believe
210 .\"O in reserved port checking. This check can be turned off for individual hosts
211 .\"O by specifying the
213 .\"O export option in
214 .\"O .IR /etc/exports .
215 IP ¤ÎÆø¢¥Ý¡¼¥È°Ê³°¤«¤éÍ褿¥Þ¥¦¥ó¥ÈÍ×µá¤âµö²Ä¤¹¤ë¡£
216 NFS ¥¯¥é¥¤¥¢¥ó¥È¤Î¸Å¤¤¼ÂÁõ¤Ç¤Ï¡¢¤³¤Î»ØÄ꤬ɬÍפʾì¹ç¤¬¤¢¤ë¡£
217 µÕ¤Ë¿·¤·¤¤¼ÂÁõ¤Ë¤Ï¡¢Æø¢¥Ý¡¼¥È¤Î¥Á¥§¥Ã¥¯¤ò¿®Íꤷ¤Ê¤¤¤â¤Î¤¬¤¢¤ë¡£
218 ¤³¤Î¥Á¥§¥Ã¥¯¤Ï¥Û¥¹¥Èñ°Ì¤Ç³°¤¹¤³¤È¤â¤Ç¤¤ë¡£
220 ¤Î¥¨¥¯¥¹¥Ý¡¼¥È¥ª¥×¥·¥ç¥ó¤Ë
224 .\"O .BR "\-P portnum" " or " "\-\-port portnum"
225 .BR "\-P portnum" " ¤Þ¤¿¤Ï " "\-\-port portnum"
230 .\"O instead of the default port 2049. By default,
232 .\"O will listen on the nfs/udp port specified in
233 .\"O .IR /etc/services ,
234 .\"O or, if that is undefined, on port 2049.
238 ¥Ý¡¼¥È¤ò´Æ»ë¤¹¤ë¤è¤¦¤Ë¤µ¤»¤ë¡£
243 ¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë nfs/udp ¥Ý¡¼¥È¤ò´Æ»ë¤¹¤ë
244 (¤¢¤ë¤¤¤Ï¤³¤ì¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤È 2049 È֤Υݡ¼¥È¤ò´Æ»ë¤¹¤ë)¡£
246 .\"O .BR \-p " or " \-\-promiscuous
247 .BR \-p " ¤Þ¤¿¤Ï " \-\-promiscuous
248 .\"O Put the server into promiscuous mode where it will serve any host
250 ¥µ¡¼¥Ð¤ò¡Ö̵À©¸Â (promiscuous)¡×¥â¡¼¥É¤Ë¤¹¤ë¡£
251 ¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Î¤¹¤Ù¤Æ¤Î¥Û¥¹¥È¤ËÂФ·¤Æ¥µ¡¼¥Ó¥¹¤òÄ󶡤¹¤ë¡£
253 .\"O .BR \-r " or " \-\-re\-export
254 .BR \-r " ¤Þ¤¿¤Ï " \-\-re\-export
255 .\"O Allow remotely mounted file-systems to be exported. This can be used to
256 .\"O turn a machine into a multiplier for NFS or Novell servers. Caution
257 .\"O should be used when re-exporting loopback NFS mounts because re-entering
258 .\"O the mount point will result in deadlock between the NFS client and the
260 ¥¤¥ó¥Ý¡¼¥È¤·¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎºÆ¥¨¥¯¥¹¥Ý¡¼¥È¤òµö¤¹¡£
261 ¤³¤ì¤Ë¤è¤ê¡¢¥Þ¥·¥ó¤Ï NFS ¤ä Novel ¥µ¡¼¥Ð¤ÎÃæ·Ñ´ï¤È¤Ê¤ë¡£
262 ¥ë¡¼¥×¥Ð¥Ã¥¯¥Þ¥¦¥ó¥È¤òºÆ¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ë¤È¤¤Ë¤ÏÆäËÃí°Õ¤¹¤ë¤³¤È¡£
263 ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤ËºÆÆþ¤¹¤ë¤È¡¢¥¯¥é¥¤¥¢¥ó¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥³¡¼¥É¤È
264 ¥µ¡¼¥Ð¡¼¤Ï¥Ç¥Ã¥É¥í¥Ã¥¯¤·¤Æ¤·¤Þ¤¦¡£
266 .\"O It should be noted that (on Linux)
268 .\"O looks at the major device number of the file system to find out whether
269 .\"O it is a remote volume; if the major number is not 0, it assumes the file
270 .\"O system is local. However, not only remote file systems use major number 0,
271 .\"O also procfs does. If you choose to re-export NFS file systems, beware
272 .\"O that this potentially includes
274 .\"O if you have the file system root exported. This poses a security problem,
275 .\"O and you should avoid this situation if possible.
276 (Linux ¤Ç¤Ï) °Ê²¼¤âÃí°Õ¤·¤Æ¤ª¤¤¿¤¤¡£
278 ¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥á¥¸¥ã¡¼¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤ò¸«¤Æ¡¢
279 ¤½¤ì¤¬¥ê¥â¡¼¥È¤Î¥Ü¥ê¥å¡¼¥à¤Ç¤¢¤ë¤«¤É¤¦¤«¤òȽÊ̤¹¤ë¡£
280 ¤â¤·¥á¥¸¥ã¡¼Èֹ椬 0 ¤Ç¤Ê¤±¤ì¤Ð¡¢
282 ¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥í¡¼¥«¥ë¤Ê¤â¤Î¤Ç¤¢¤ë¤ÈȽÃǤ¹¤ë¡£
283 ¤·¤«¤·¡¢¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë°Ê³°¤Ë¤â¥á¥¸¥ã¡¼ÈÖ¹æ 0 ¤òÍøÍѤ¹¤ë¤â¤Î¤¬¤¢¤ë¡£
285 NFS ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºÆ¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ë¤³¤È¤Ë¤·¤¿¾ì¹ç¡¢
286 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î root ¤ò¥¨¥¯¥¹¥Ý¡¼¥È¤·¤¿¾ì¹ç¤Ë¤Ï
288 ¤â´Þ¤Þ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£
289 ¤³¤ì¤Ï¥»¥¥å¥ê¥Æ¥£¾å¤ÎÌäÂê¤È¤Ê¤ë¤³¤È¤¬¤¢¤ë¡£
290 ¤Ç¤¤ì¤Ð¤³¤Î¤è¤¦¤Ê¾õ¶·¤ÏÈò¤±¤ë¤Ù¤¤Ç¤¢¤ë¡£
292 .\"O .\".BR \-s " or " \-\-synchronous\-writes
293 .\".BR \-s " ¤Þ¤¿¤Ï " \-\-synchronous\-writes
294 .\"O .\"The NFS protocol specification requires all write operations to the server
295 .\"O .\".\"to be complete before the call returns. By default,
297 .\"O .\"does not do this. This option turns on synchronous writes.
298 .\"O .\"--- why would anyone want to turn this off?
299 .\"NFS ¥×¥í¥È¥³¥ë¤Î»ÅÍͤǤϡ¢¥µ¡¼¥Ð¡¼¤ËÂФ¹¤ëÁ´¤Æ¤Î½ñ¤¹þ¤ßÁàºî¤Ï
300 .\"¸Æ¤Ó½Ð¤·¤¬ÊÖ¤ëÁ°¤Ë´°Î»¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
303 .\"¤Ï¤³¤Î¤è¤¦¤ËÆ°ºî¤·¤Ê¤¤¡£
304 .\"¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏƱ´ü½ñ¤¹þ¤ß¤ò͸ú¤Ë¤¹¤ë¡£
305 .\"-- ¤Ê¤¼¡¢¤ß¤ó¤Ê¤¬Æ±´ü½ñ¤¹þ¤ß¤ò̵¸ú¤Ë¤·¤¿¤¬¤ë¤Î¤À¤í¤¦?
307 .\"O .BR \-t " or " \-\-no\-spoof\-trace
308 .BR \-t " ¤Þ¤¿¤Ï " \-\-no\-spoof\-trace
311 .\"O logs every access by unauthorized clients. This option turns off logging
312 .\"O of such spoof attempts for all hosts listed explicitly in the
317 ¤Ï¸¢¸Â¤Î¤Ê¤¤¥¯¥é¥¤¥¢¥ó¥È¤«¤é¤ÎÁ´¤Æ¤Î¥¢¥¯¥»¥¹¤ò¥í¥°¤ËµÏ¿¤¹¤ë¡£
318 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢
320 ¥Õ¥¡¥¤¥ë¤ËÌÀ¼¨Åª¤Ë¥ê¥¹¥È¤µ¤ì¤Æ¤¤¤ëÁ´¤Æ¤Î¥Û¥¹¥È¤Ë¤Ä¤¤¤Æ¡¢
321 ¤³¤Î¤è¤¦¤ÊÀ®¤ê¤¹¤Þ¤·¹Ô°Ù¤ò¥í¥°¤ËµÏ¿¤·¤Ê¤¤¡£
323 .\"O .BR \-R " or " \-\-public\-root
324 .BR \-R " ¤Þ¤¿¤Ï " \-\-public\-root
325 .\"O Specifies the directory associated with the public file handle. See
326 .\"O the section on WebNFS below.
327 ¥Ç¥£¥ì¥¯¥È¥ê¤ò public ¤Ê¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤È´ØÏ¢¤Å¤±¤ë¡£
328 °Ê²¼¤Î WebNFS ¤Î¥»¥¯¥·¥ç¥ó¤ò»²¾È¤Î¤³¤È¡£
330 .\"O .BR \-v " or " \-\-version
331 .BR \-v " ¤Þ¤¿¤Ï " \-\-version
332 .\"O Report the current version number of the program.
333 ¥×¥í¥°¥é¥à¤Î¸½ºß¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
336 .\"O This is an experimental feature that lets you run several instances of
338 .\"O in parallel. When given a value of
340 .\"O greater than one,
342 .\"O will fork as many times as specified by this value.
343 .\"O However, the servers do not share a common file handle
344 .\"O cache, which makes certain file operations impossible.
345 ¤³¤ì¤Ï¼Â¸³Åª¤Êµ¡Ç½¤Ç¤¢¤ê¡¢
347 ¤Î¤¤¤¯¤Ä¤«¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤òʹÔÆ°ºî¤µ¤»¤ë¤â¤Î¤Ç¤¢¤ë¡£
349 ¤Ë 1 °Ê¾å¤ÎÃͤòÍ¿¤¨¤ë¤È¡¢
351 ¤Ï»ØÄꤷ¤¿Ãͤβó¿ô¤À¤± fork ¤¹¤ë¡£
352 ¤·¤«¤·¡¢¥µ¡¼¥Ð¡¼¤Ï¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¥¥ã¥Ã¥·¥å¤ò¶¦Í¤·¤Ê¤¤¤Î¤Ç¡¢
353 ¤¢¤ë¼ï¤Î¥Õ¥¡¥¤¥ëÁàºî¤ÏÉÔ²Äǽ¤È¤Ê¤ë¡£
355 .\"O For this reason,
357 .\"O will disallow all write operations when invoked with this option. Although
358 .\"O this is very limiting, this feature may still prove useful for exporting
359 .\"O public FTP areas or Usenet News spools.
362 ¤Ï¤³¤Î¥ª¥×¥·¥ç¥ó¤È¶¦¤Ëµ¯Æ°¤µ¤ì¤ë¤È¡¢¤¹¤Ù¤Æ¤Î½ñ¤¹þ¤ßÁàºî¤òµñÈݤ¹¤ë¡£
363 ¤³¤ÎÀ©¸Â¤ÏÂ礤ʤâ¤Î¤Ç¤Ï¤¢¤ë¤¬¡¢
364 ¤½¤ì¤Ç¤â¸ø³« FTP Îΰè¤ä Usenet News ¤Î¥¹¥×¡¼¥ë¤ò¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢
365 ¤³¤Îµ¡Ç½¤Ï°ÍÁ³ÍÍѤǤ¢¤í¤¦¡£
366 .\"O .SS WebNFS Support
367 .SS "WebNFS ¤Î¥µ¥Ý¡¼¥È"
368 .\"O WebNFS is an extension to the normal NFS protocol developed by Sun
369 .\"O that is particularly well-suited for file retrieval over the
370 .\"O Internet, and is intended to be used (among others) from Web browsers.
371 WebNFS ¤Ï Sun ¤Ë¤è¤Ã¤Æ³«È¯¤µ¤ì¤¿Ä̾ï¤Î NFS ¥×¥í¥È¥³¥ë¤ò³ÈÄ¥¤·¤¿¤â¤Î¤Ç¡¢
372 ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤òÄ̤·¤Æ¤Î¥Õ¥¡¥¤¥ë¼èÆÀ¤ËÆäËŬ¤·¤Æ¤¤¤ë¡£
373 ¤Þ¤¿¡¢ÆÃ¤Ë Web ¥Ö¥é¥¦¥¶¤òÄ̤·¤Æ¤ÎÍøÍѤò°Õ¿Þ¤·¤ÆºîÀ®¤µ¤ì¤¿¡£
375 .\"O Central to the concept is the so-called public file handle. This is
376 .\"O a special NFS file handle used by the NFS client (i.e. browser) to
377 .\"O retrieve a file without having to go through the mount protocol.
378 ¤³¤Î¥³¥ó¥»¥×¥È¤ÎÃæ¿´¤Ë¤¢¤ë¤Î¤Ï¡¢
379 ¡Öpublic ¤Ê¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¡×¤È¸Æ¤Ð¤ì¤ë¤â¤Î¤Ç¤¢¤ë¡£
380 ¤³¤ì¤ÏÆüì¤Ê NFS ¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤Ç¡¢
381 ¤³¤ì¤òÍѤ¤¤ë¤È NFS ¥¯¥é¥¤¥¢¥ó¥È (¤Ä¤Þ¤ê¥Ö¥é¥¦¥¶) ¤Ï
382 MOUNT ¥×¥í¥È¥³¥ë¤òÍøÍѤ»¤º¤Ë¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ë¡£
383 .\"O This file handle must be associated with a directory on the server
384 .\"O machine, relative to which it evaluates filenames. This is the
385 .\"O .IR "public root directory" ,
386 .\"O which can be specified using the
387 .\"O .B \-\-public\-root
388 .\"O option. A Web server, for instance, would probably use the root of its
389 .\"O Web server as the public root
390 .\"O .BR "" "(e.g. " /home/httpd ).
391 .\"O A Web broser requesting the URL
392 .\"O .B nfs://foo.bar.edu/zappa.html
393 .\"O would then be given the file
394 .\"O .BR /home/httpd/zappa.html .
395 ¤³¤Î¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤Ï¥µ¡¼¥Ð¡¼¥Þ¥·¥ó¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë
396 ´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢
397 ¤Þ¤¿¤³¤Î¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤Ë¤è¤ë¥Õ¥¡¥¤¥ë̾¤Îɾ²Á¤Ï¡¢
398 ¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤È¤·¤Æ¹Ô¤ï¤ì¤ë¤³¤È¤Ë¤Ê¤ë¡£
400 .I "public root ¥Ç¥£¥ì¥¯¥È¥ê"
403 ¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤Æ»ØÄê¤Ç¤¤ë¡£
404 Î㤨¤Ð Web ¥µ¡¼¥Ð¤Ê¤é¡¢¥É¥¥å¥á¥ó¥È¤Î root (Î㤨¤Ð \fB/home/httpd/\fP) ¤ò
405 ¤³¤Î public root ¤Ë¤¹¤ë¤ÈÎɤ¤¤À¤í¤¦¡£
407 .B nfs://foo.bar.edu/zappa.html
408 ¤òÍ׵ᤷ¤¿ Web ¥Ö¥é¥¦¥¶¤Ï¡¢¥Õ¥¡¥¤¥ë
409 .B /home/httpd/zappa.html
410 ¤òÍ¿¤¨¤é¤ì¤ë¤³¤È¤Ë¤Ê¤ë¡£
411 .\"O For ease of maintenance, the public root directory can also be specified
412 .\"O using a special entry in the
417 ¥á¥ó¥Æ¥Ê¥ó¥¹¤òÍưפˤ¹¤ë¤¿¤á¡¢public root ¥Ç¥£¥ì¥¯¥È¥ê¤Î»ØÄê¤Ï¡¢
419 ¤ÇÆüì¤Ê¥¨¥ó¥È¥ê¤òÍѤ¤¤ë¤³¤È¤Ë¤è¤Ã¤Æ¤â²Äǽ¤Ë¤Ê¤Ã¤Æ¤¤¤ë (¾ÜºÙ¤Ï
423 .\"O Naming a public root does
425 .\"O automatically export it; you still must explicitly do that in
427 .\"O in order to actually make the directory accessible.
428 public root ¤ò»ØÄꤷ¤Æ¤â¡¢¤³¤ì¤¬¼«Æ°Åª¤Ë¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤ë¤ï¤±¤Ç¤Ï\fI¤Ê¤¤\fP¡£
429 ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¼ÂºÝ¤Ë¥¢¥¯¥»¥¹²Äǽ¤Ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢°ÍÁ³
431 ¤ÇÌÀ¼¨¤¹¤ëɬÍפ¬¤¢¤ë¡£
432 .\"O A useful set of options to export data to WebNFS clients is
433 .\"O .BR ro,all_squash,insecure .
436 .\"O for a detailed explanation of these flags.
437 WebNFS ¥¯¥é¥¤¥¢¥ó¥È¤Ë¥Ç¡¼¥¿¤ò¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ëºÝ¤ËÍÍѤʥª¥×¥·¥ç¥ó¤Î¥»¥Ã¥È¤Ï¡¢
438 .B ro,all_squash,insecure
440 ¤³¤ì¤é¤Î¥Õ¥é¥°¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï
444 .\"O Also note that a WebNFS client can also access files not located below the
445 .\"O public root directory as long as they are exported to him. In particular,
448 .\"O exported to the world in addition to the Web server's home directory,
449 .\"O a web client may be able to access FTP files via
450 .\"O .BR nfs://foo.bar.edu/../ftp/README .
451 .\"O Of course, this does not apply to files that are not exported to the client.
452 WebNFS ¥¯¥é¥¤¥¢¥ó¥È¤Ï¡¢
453 public root ¥Ç¥£¥ì¥¯¥È¥ê²¼¤ËÃÖ¤«¤ì¤Æ¤¤¤Ê¤¤¥Õ¥¡¥¤¥ë¤Ë´Ø¤·¤Æ¤â¡¢
454 ¤½¤ì¤¬¼«Ê¬¤à¤±¤Ë¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ì¤Ð
455 ¥¢¥¯¥»¥¹¤Ç¤¤Æ¤·¤Þ¤¦¤³¤È¤Ë¤âÃí°Õ¤·¤Æ¤Û¤·¤¤¡£
458 ¤ò Web ¥µ¡¼¥Ð¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤È¶¦¤Ë³°³¦¤Ë¥¨¥¯¥¹¥Ý¡¼¥È¤·¤Æ¤·¤Þ¤¦¤È¡¢
459 Web ¥¯¥é¥¤¥¢¥ó¥È¤Ï FTP ¥Õ¥¡¥¤¥ë¤Ë
460 .B nfs://foo.bar.edu/../ftp/README
461 ¤Î¤è¤¦¤Ë¥¢¥¯¥»¥¹¤Ç¤¤Æ¤·¤Þ¤¦¡£
462 ¤â¤Á¤í¤ó¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¥¯¥é¥¤¥¢¥ó¥È¤Ë´Ø¤·¤Æ¤Ï¡¢
463 ¤³¤ì¤Ï¤¢¤Æ¤Ï¤Þ¤é¤Ê¤¤¡£
467 .\"O recognizes the following signals:
469 ¤Ï°Ê²¼¤Î¥·¥°¥Ê¥ë¤òǧ¼±¤¹¤ë:
474 .\"O to re-read the export file and flush the file handle cache. If a public
475 .\"O root was specified, this will also regenerate the file handle associated
476 .\"O with the public directory name (useful when exporting a removable
478 ¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¤ë¤È¡¢
480 ¤Ï export ¥Õ¥¡¥¤¥ë¤òºÆÆɤ߹þ¤ß¤·¡¢
481 ¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤Î¥¥ã¥Ã¥·¥å¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
482 public root ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢¤³¤Î¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ
483 public ¥Ç¥£¥ì¥¯¥È¥ê̾¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤¬ºÆÀ¸À®¤µ¤ì¤ë
484 (¥ê¥à¡¼¥Ð¥Ö¥ë¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ë¾ì¹ç¤ËÊØÍø)¡£
489 .\"O was invoked with debugging options, sending this signal toggles
490 .\"O generation of debug information.
491 ¥Ç¥Ð¥Ã¥°¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Æ
493 µ¯Æ°¤·¤¿¾ì¹ç¡¢¤³¤Î¥·¥°¥Ê¥ë¤òÍ¿¤¨¤ë¤È
494 ¥Ç¥Ð¥Ã¥°¾ðÊó¤ÎÀ¸À®¤ò¥ª¥ó¡¦¥ª¥Õ¤Ç¤¤ë¡£
497 .\"O When compiled with with the -DCALL_PROFILING option, sending a SIGIOT to
499 .\"O will cause dump the average execution times per NFS operation into
500 .\"O .IR /tmp/nfsd.profile .
501 \-DCALL_PROFILING ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Æ¥³¥ó¥Ñ¥¤¥ë¤·¤¿¾ì¹ç¡¢
504 ¤ËÁ÷¤ë¤È°ì²ó¤Î NFS Áàºî¤¢¤¿¤ê¤ÎÊ¿¶Ñ¼Â¹Ô»þ´Ö¤¬
510 .\"O does not support the retrieval of
512 .\"O files when asked to look up a directory file name. This is not an RFC
513 .\"O requirement, so it's rather a feature absent than a true bug.
515 ¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Õ¥¡¥¤¥ë̾¤¬Ì䤤¹ç¤ï¤µ¤ì¤¿¤È¤¤Ë
517 ¥Õ¥¡¥¤¥ë¤òÄ󶡤¹¤ëµ¡Ç½¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£
518 ¤³¤ì¤Ï RFC ¤ÎÍ×µá¤Ë¤Ï¤Ê¤¤¤Î¤Ç¡¢¼ÂºÝ¤Ë¤Ï¥Ð¥°¤Ç¤Ï¤Ê¤¯µ¡Ç½¤Î·çÇ¡¤Ç¤¢¤ë¡£
521 .\"O .B \-\-log-transfers
522 .\"O option is not always accurate since there is no equivalent to the UNIX
524 .\"O .BR open() " and " close()
525 .\"O calls in the NFS protocol. Instead,
527 .\"O writes out a transfer record whenever it encounters a READ or WRITE
528 .\"O request at offset zero.
529 .B \-\-log\-transfers
530 ¥ª¥×¥·¥ç¥ó¤Ïɬ¤º¤·¤âÀµ¤·¤¤¥í¥°¤ò»Ä¤µ¤Ê¤¤¡£
531 ¤Ê¤¼¤Ê¤é UNIX ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î
532 .BR open() " ¤ª¤è¤Ó " close()
533 ¥³¡¼¥ë¤ËÂбþ¤¹¤ë¤â¤Î¤¬ NFS ¥×¥í¥È¥³¥ë¤Ë¤Ï¸ºß¤·¤Ê¤¤¤«¤é¤Ç¤¢¤ë¡£
536 ¤Ï¡¢READ ¤Þ¤¿¤Ï WRITE Í×µá¤Î¥ª¥Õ¥»¥Ã¥È 0 ¤ËÁø¶ø¤¹¤ë¤¿¤Ó¤ËžÁ÷µÏ¿¤ò½ñ¤½Ð¤¹¡£
539 exports(5), mountd(8), ugidd(8C)
542 .\"O Mark Shand wrote the orignal unfsd.
543 .\"O Don Becker extended unfsd to support authentication
544 .\"O and allow read-write access and called it hnfs.
545 .\"O Rick Sladkey added host matching, showmount -e support,
546 .\"O mountd authentication, inetd support, and all of the
547 .\"O portability and configuration code.
548 .\"O Olaf Kirch fixed one or two security holes and other bugs, added
549 .\"O the uid mapping and a couple of other things.
550 Mark Shand ¤¬¥ª¥ê¥¸¥Ê¥ë¤Î unfsd ¤ò½ñ¤¤¤¿¡£
551 Don Becker ¤Ï unfsd ¤ò³ÈÄ¥¤·¡¢Ç§¾Úµ¡Ç½¤È read-write µ¡Ç½¤ò
552 ¥µ¥Ý¡¼¥È¤·¤Æ¡¢¤³¤ì¤ò hnfs ¤È̾¤Å¤±¤¿¡£
553 Rick Sladkey ¤Ï¥Û¥¹¥È¥Þ¥Ã¥Á¡¢showmount \-e ¤Î¥µ¥Ý¡¼¥È¡¢
554 mountd ¤Îǧ¾Ú¡¢inetd ¤Î¥µ¥Ý¡¼¥È¡¢°Ü¿¢À¤Î¸þ¾å¤äÀßÄê¤Ë
555 ɬÍפʥ³¡¼¥É¤Ê¤É¤òÄɲä·¤¿¡£
556 Olaf Kirch ¤Ï°ì¤ÄÆó¤Ä¤Î¥»¥¥å¥ê¥Æ¥£¥Û¡¼¥ë¤È¡¢¤½¤Î¾¤Î¥Ð¥°¤ò
557 ½¤Àµ¤·¡¢uid ¥Þ¥Ã¥Ô¥ó¥°¤È¤½¤Î¾¤¤¤¯¤Ä¤«¤Îµ¡Ç½¤òÄɲä·¤¿¡£