Reviewed by: The Japanese Online-manual Project <man-jp@jp.FreeBSD.ORG> Submitted by: horikawa@jp.freebsd.org
137 lines
4.5 KiB
Groff
137 lines
4.5 KiB
Groff
.\" Copyright (c) 1983, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)tftpd.8 8.1 (Berkeley) 6/4/93
|
|
.\" jpman %Id: tftpd.8,v 1.3 1997/07/22 17:00:36 horikawa Stab %
|
|
.\"
|
|
.Dd June 4, 1993
|
|
.Dt TFTPD 8
|
|
.Os BSD 4.2
|
|
.Sh ̾¾Î
|
|
.Nm tftpd
|
|
.Nd
|
|
¥¤¥ó¥¿¡¼¥Í¥Ã¥È TFTP (Trivial File Transfer Protocol) ¥µ¡¼¥Ð
|
|
.Sh ½ñ¼°
|
|
.Nm /usr/libexec/tftpd
|
|
.Op Fl l
|
|
.Op Fl n
|
|
.Op Fl s Ar directory
|
|
.Op Ar directory ...
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¤Ï¡¢¥¤¥ó¥¿¡¼¥Í¥Ã¥È TFTP ¥×¥í¥È¥³¥ë (
|
|
.Tn RFC 783
|
|
) ¤òÄ󶡤¹¤ë¥µ¡¼¥Ð¤Ç¤¹¡£
|
|
.Tn TFTP
|
|
¥µ¡¼¥Ð¤Ï¡¢
|
|
.Ql tftp
|
|
¥µ¡¼¥Ó¥¹ÄêµÁ¤Ç»Ø¼¨¤µ¤ì¤¿¥Ý¡¼¥È¤òÁàºî¤·¤Þ¤¹¡£
|
|
.Xr services 5
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
¤³¤Î¥µ¡¼¥Ð¤ÏÉáÄÌ
|
|
.Xr inetd 8
|
|
¤Ë¤è¤Ã¤Æµ¯Æ°¤µ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
.Xr tftp 1
|
|
¤ÎÍøÍѤˤϡ¢¥ê¥â¡¼¥È¥·¥¹¥Æ¥à¤Î¥¢¥«¥¦¥ó¥È¤ä¥Ñ¥¹¥ï¡¼¥É¤òɬÍפȤ·¤Þ¤»¤ó¡£
|
|
ǧ¾Ú¾ðÊ󤬤¢¤ê¤Þ¤»¤ó¤Î¤Ç¡¢
|
|
.Nm
|
|
¤Ï¥Ñ¥Ö¥ê¥Ã¥¯¤ËÆÉ¤ß¹þ¤ß²Äǽ¤Ê¥Õ¥¡¥¤¥ë¤À¤±¤·¤«¥¢¥¯¥»¥¹¤òµö²Ä¤·¤Þ¤»¤ó¡£
|
|
ʸ»úÎó ``/\|\fB.\|.\fP\|/'' ¤ò´Þ¤ó¤À¥Õ¥¡¥¤¥ë¡¢¤â¤·¤¯¤Ï
|
|
``\|\fB.\|.\fP\|/'' ¤«¤é»Ï¤Þ¤ë¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹¤Ïµö²Ä¤µ¤ì¤Þ¤»¤ó¡£
|
|
¥Õ¥¡¥¤¥ë¤Ï¡¢´û¤Ë¸ºß¤·¤Æ¥Ñ¥Ö¥ê¥Ã¥¯¤Ë½ñ¤¹þ¤ß²Äǽ¤Ê¾ì¹ç¤À¤±
|
|
½ñ¤¹þ¤Þ¤ì¤Þ¤¹¡£
|
|
.Dq ¥Ñ¥Ö¥ê¥Ã¥¯ (public)
|
|
¤È¤¤¤¦³µÇ°¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¤òÄ̤·¤ÆÅþã²Äǽ¤ÊÁ´¤Æ¤Î¥Û¥¹¥È¤ÎÁ´¤Æ¤Î¥æ¡¼¥¶
|
|
¤ò´Þ¤à¤è¤¦¤Ë³ÈÄ¥¤µ¤ì¤Æ¤¤¤ëÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
¤³¤ì¤ÏÁ´¤Æ¤Î¥·¥¹¥Æ¥à¤Ë¤ª¤¤¤ÆÅ¬Åö¤Ç¤Ï¤Ê¤¤¤«¤âÃΤì¤Ê¤¤¤·¡¢
|
|
¤½¤Î¤³¤È¤Ï tftp ¥µ¡¼¥Ó¥¹¤ò͸ú¤Ë¤¹¤ëÁ°¤Ë¹Íθ¤¹¤Ù¤¤Ç¤¹¡£
|
|
¥µ¡¼¥Ð¤Ï¡¢¤â¤Ã¤È¤â²Äǽ¤Ê¸Â¤ê¾®¤µ¤Ê¸¢¸Â¤ò»ý¤Ã¤¿¥æ¡¼¥¶ ID ¤ò
|
|
»ý¤¿¤Í¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
|
.Pp
|
|
¥Õ¥¡¥¤¥ë¤Ø¤Î¥¢¥¯¥»¥¹À©¸Â¤Ï¡¢
|
|
.Nm
|
|
µ¯Æ°»þ¤Î¥Ç¥£¥ì¥¯¥È¥ê¥ê¥¹¥È¤ò¡¢
|
|
.Pa /etc/inetd.conf
|
|
¤Ë¥µ¡¼¥Ð¥×¥í¥°¥é¥à¤Ø¤Î°ú¿ô¤È¤·¤Æ 20 ¤Þ¤Ç¤Î¥Ñ¥¹Ì¾¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤ê²Äǽ¤Ç¤¹¡£
|
|
¤³¤Î¾ì¹ç¡¢¥¢¥¯¥»¥¹¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤¬¤½¤³¤ÇÍ¿¤¨¤é¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ò
|
|
Ƭ¤ËÉÕ¤±¤¿¤â¤Î¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£
|
|
Í¿¤¨¤é¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ï¡¢ÁêÂÐ¥Õ¥¡¥¤¥ë»ØÄêÍ×µá¤ËÂФ·¤Æ¤Îõº÷¥Ñ¥¹¤È
|
|
¤·¤Æ¤âÍøÍѤµ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
chroot ¥ª¥×¥·¥ç¥ó¤Ï¡¢
|
|
.Nm
|
|
¤Î¥¢¥¯¥»¥¹¤ò chroot ¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
|
|
¤À¤±¤ËÀ©¸Â¤¹¤ë¤³¤È¤Ç¡¢¥»¥¥å¥ê¥Æ¥£¤òÄɲä·¤Þ¤¹¡£
|
|
¤³¤ì¤Ï¡¢¥Ö¡¼¥È¥µ¡¼¥Ð¤È¤·¤Æ
|
|
.Fl s
|
|
¤òÄ󶡤·¤Æ¤¤¤ë OS ¤«¤é¼Â¹Ô¤¹¤ë»þ¤ËÊØÍø¤Ç¤¹¡£
|
|
chroot ¤Î¼Â¹Ô¤Ï root ¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢
|
|
.Nm
|
|
¤Ï root ¤Ç
|
|
¼Â¹Ô¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤·¤«¤·¤Ê¤¬¤é¡¢ chroot ¤·¤¿¾ì¹ç¡¢
|
|
.Nm
|
|
¤Ï¥æ¡¼¥¶ id ¤ò nobody ¤ËÀßÄꤷ¤Þ¤¹¡£
|
|
.Pp
|
|
°Ê²¼¤Î¤è¤¦¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£
|
|
.Bl -tag -width Ds
|
|
.It Fl l
|
|
Á´¤Æ¤ÎÍ×µá¤ò¡¢
|
|
.Xr syslog 3
|
|
¤Î¥Õ¥¡¥·¥ê¥Æ¥£ LOG_FTP ¤ò»È¤Ã¤Æ¡¢¥í¥°Êݸ¤·¤Þ¤¹¡£
|
|
Ãí¼á: syslog ÀßÄê¥Õ¥¡¥¤¥ë
|
|
.Xr syslog.conf 5
|
|
¤Ë¤ª¤¤¤Æ¤â¡¢LOG_FTP ¥á¥Ã¥»¡¼¥¸¤Î¥í¥°µ¡Ç½¤ò͸ú¤È¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|
|
.It Fl n
|
|
¸ºß¤·¤Ê¤¤ÁêÂÐ¥Õ¥¡¥¤¥ë̾¤ËÂФ¹¤ëÍ×µá¤ÎÈÝÄê±þÅú¤òÍ޻ߤ·¤Þ¤¹¡£
|
|
.It Fl s Ar directory
|
|
¥³¥Þ¥ó¥É¤ò¼õ¤±¼è¤ëÁ°¤Ë
|
|
.Nm
|
|
¤ò
|
|
.Pa directory
|
|
¤Ø chroot ¤µ¤»¤Þ¤¹¡£¹¹¤Ë¡¢¥æ¡¼¥¶ id ¤ò nobody ¤Ë¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Fl s
|
|
¤ò»ÈÍѤ·¤Ê¤¤¾ì¹ç¡¢¥æ¡¼¥¶ id ¤ÎÊѹ¹¤Ï»î¤ß¤é¤ì¤Þ¤»¤ó¡£
|
|
.Fl s
|
|
¤ò»ÈÍѤ·¤Ê¤¤¾ì¹ç¤Ï¡¢
|
|
.Nm
|
|
¤ò root ¤Ç¼Â¹Ô¤·¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr tftp 1 ,
|
|
.Xr inetd 8 ,
|
|
.Xr syslogd 8
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï¡¢
|
|
.Bx 4.2
|
|
¤«¤éƳÆþ¤µ¤ì¤Þ¤·¤¿¡£
|