limit total running time for getty to prevent bad lines from forcing getty
[unix-history] / usr / src / libexec / tftpd / tftpd.8
CommitLineData
af039b1d
KB
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
9a0d3ce2 3.\"
42537cbb 4.\" %sccs.include.redist.roff%
9a0d3ce2 5.\"
af039b1d 6.\" @(#)tftpd.8 8.1 (Berkeley) %G%
7b27b388 7.\"
0fccfdb8
CL
8.Dd
9.Dt TFTPD 8
10.Os BSD 4.2
11.Sh NAME
12.Nm tftpd
13.Nd
d43ab529 14Internet Trivial File Transfer Protocol server
0fccfdb8
CL
15.Sh SYNOPSIS
16.Nm tftpd
d43ab529
AC
17.Op Fl l
18.Op Fl n
0fccfdb8
CL
19.Op Ar directory ...
20.Sh DESCRIPTION
21.Nm Tftpd
22is a server which supports the
d43ab529
AC
23Internet Trivial File Transfer
24Protocol (\c
25.Tn RFC 783).
0fccfdb8
CL
26The
27.Tn TFTP
28server operates
29at the port indicated in the
30.Ql tftp
31service description;
9a0d3ce2 32see
0fccfdb8 33.Xr services 5 .
0a333f78 34The server is normally started by
0fccfdb8
CL
35.Xr inetd 8 .
36.Pp
9a0d3ce2 37The use of
0fccfdb8 38.Xr tftp 1
9a0d3ce2
KM
39does not require an account or password on the remote system.
40Due to the lack of authentication information,
0fccfdb8 41.Nm tftpd
9a0d3ce2
KM
42will allow only publicly readable files to be
43accessed.
d43ab529 44Files containing the string ``/\|\fB.\|.\fP\|/'' are not allowed.
0a333f78 45Files may be written only if they already exist and are publicly writable.
0fccfdb8
CL
46Note that this extends the concept of
47.Dq public
48to include
9a0d3ce2
KM
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.
0a333f78 52The server should have the user ID with the lowest possible privilege.
0fccfdb8 53.Pp
4d24819a 54Access to files may be restricted by invoking
0fccfdb8 55.Nm tftpd
d43ab529 56with a list of directories by including up to 20 pathnames
4d24819a 57as server program arguments in
0fccfdb8 58.Pa /etc/inetd.conf .
4d24819a
TF
59In this case access is restricted to files whose
60names are prefixed by the one of the given directories.
d43ab529
AC
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
0fccfdb8
CL
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 .