1.\" $NetBSD: tftpd.8,v 1.6 1998/02/06 05:43:16 perry Exp $ 2.\" 3.\" Copyright (c) 1983, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by the University of 17.\" California, Berkeley and its contributors. 18.\" 4. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" from: @(#)tftpd.8 8.1 (Berkeley) 6/4/93 35.\" 36.Dd June 4, 1993 37.Dt TFTPD 8 38.Os BSD 4.2 39.Sh NAME 40.Nm tftpd 41.Nd 42.Tn DARPA 43Internet Trivial File Transfer Protocol server 44.Sh SYNOPSIS 45.Nm 46.Op Fl s Ar directory 47.Op Fl l 48.Op Fl n 49.Op Ar directory ... 50.Sh DESCRIPTION 51.Nm 52is a server which supports the 53.Tn DARPA 54Trivial File Transfer 55Protocol. 56The 57.Tn TFTP 58server operates 59at the port indicated in the 60.Ql tftp 61service description; 62see 63.Xr services 5 . 64The server is normally started by 65.Xr inetd 8 . 66.Pp 67The use of 68.Xr tftp 1 69does not require an account or password on the remote system. 70Due to the lack of authentication information, 71.Nm 72will allow only publicly readable files to be 73accessed. 74Files containing the string ``/\|\fB.\|.\fP\|/'' are not allowed. 75Files may be written only if they already exist and are publicly writable. 76Note that this extends the concept of 77.Dq public 78to include 79all users on all hosts that can be reached through the network; 80this may not be appropriate on all systems, and its implications 81should be considered before enabling tftp service. 82The server should have the user ID with the lowest possible privilege. 83.Pp 84Access to files may be restricted by invoking 85.Nm 86with a list of directories by including up to 20 pathnames 87as server program arguments in 88.Pa /etc/inetd.conf . 89In this case access is restricted to files whose 90names are prefixed by the one of the given directories. 91The given directories are also treated as a search path for 92relative filename requests. 93.Pp 94The options are: 95.Bl -tag -width Ds 96.It Fl l 97Logs all requests using 98.Xr syslog 3 . 99.It Fl n 100Suppresses negative acknowledgement of requests for nonexistent 101relative filenames. 102.It Fl s 103.Nm 104will 105.Xr chroot 2 106on startup; therefore the remote host is not expected to pass the directory 107as part of the file name to transfer. This option is intended primarily for 108compatibility with SunOS boot ROMs which do not include a directory name. 109.El 110.Pp 111.Sh SEE ALSO 112.Xr tftp 1 , 113.Xr inetd 8 114.Sh HISTORY 115The 116.Nm 117command appeared in 118.Bx 4.2 . 119.Pp 120The 121.Fl s 122flag appeared in 123.Nx 1.0 . 124