xref: /original-bsd/libexec/tftpd/tftpd.8 (revision af60fb2a)
1.\" Copyright (c) 1983, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)tftpd.8	8.1 (Berkeley) 06/04/93
7.\"
8.Dd
9.Dt TFTPD 8
10.Os BSD 4.2
11.Sh NAME
12.Nm tftpd
13.Nd
14Internet Trivial File Transfer Protocol server
15.Sh SYNOPSIS
16.Nm tftpd
17.Op Fl l
18.Op Fl n
19.Op Ar directory ...
20.Sh DESCRIPTION
21.Nm Tftpd
22is a server which supports the
23Internet Trivial File Transfer
24Protocol (\c
25.Tn RFC 783).
26The
27.Tn TFTP
28server operates
29at the port indicated in the
30.Ql tftp
31service description;
32see
33.Xr services 5 .
34The server is normally started by
35.Xr inetd 8 .
36.Pp
37The use of
38.Xr tftp 1
39does not require an account or password on the remote system.
40Due to the lack of authentication information,
41.Nm tftpd
42will allow only publicly readable files to be
43accessed.
44Files containing the string ``/\|\fB.\|.\fP\|/'' are not allowed.
45Files may be written only if they already exist and are publicly writable.
46Note that this extends the concept of
47.Dq public
48to include
49all users on all hosts that can be reached through the network;
50this may not be appropriate on all systems, and its implications
51should be considered before enabling tftp service.
52The server should have the user ID with the lowest possible privilege.
53.Pp
54Access to files may be restricted by invoking
55.Nm tftpd
56with a list of directories by including up to 20 pathnames
57as server program arguments in
58.Pa /etc/inetd.conf .
59In this case access is restricted to files whose
60names are prefixed by the one of the given directories.
61The given directories are also treated as a search path for
62relative filename requests.
63.Pp
64The options are:
65.Bl -tag -width Ds
66.It Fl l
67Logs all requests using
68.Xr syslog 3 .
69.It Fl n
70Suppresses negative acknowledgement of requests for nonexistent
71relative filenames.
72.El
73.Sh SEE ALSO
74.Xr tftp 1 ,
75.Xr inetd 8
76.Sh HISTORY
77The
78.Nm
79command appeared in
80.Bx 4.2 .
81