Commit | Line | Data |
---|---|---|
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 | 14 | Internet 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 | |
22 | is a server which supports the | |
d43ab529 AC |
23 | Internet Trivial File Transfer |
24 | Protocol (\c | |
25 | .Tn RFC 783). | |
0fccfdb8 CL |
26 | The |
27 | .Tn TFTP | |
28 | server operates | |
29 | at the port indicated in the | |
30 | .Ql tftp | |
31 | service description; | |
9a0d3ce2 | 32 | see |
0fccfdb8 | 33 | .Xr services 5 . |
0a333f78 | 34 | The server is normally started by |
0fccfdb8 CL |
35 | .Xr inetd 8 . |
36 | .Pp | |
9a0d3ce2 | 37 | The use of |
0fccfdb8 | 38 | .Xr tftp 1 |
9a0d3ce2 KM |
39 | does not require an account or password on the remote system. |
40 | Due to the lack of authentication information, | |
0fccfdb8 | 41 | .Nm tftpd |
9a0d3ce2 KM |
42 | will allow only publicly readable files to be |
43 | accessed. | |
d43ab529 | 44 | Files containing the string ``/\|\fB.\|.\fP\|/'' are not allowed. |
0a333f78 | 45 | Files may be written only if they already exist and are publicly writable. |
0fccfdb8 CL |
46 | Note that this extends the concept of |
47 | .Dq public | |
48 | to include | |
9a0d3ce2 KM |
49 | all users on all hosts that can be reached through the network; |
50 | this may not be appropriate on all systems, and its implications | |
51 | should be considered before enabling tftp service. | |
0a333f78 | 52 | The server should have the user ID with the lowest possible privilege. |
0fccfdb8 | 53 | .Pp |
4d24819a | 54 | Access to files may be restricted by invoking |
0fccfdb8 | 55 | .Nm tftpd |
d43ab529 | 56 | with a list of directories by including up to 20 pathnames |
4d24819a | 57 | as server program arguments in |
0fccfdb8 | 58 | .Pa /etc/inetd.conf . |
4d24819a TF |
59 | In this case access is restricted to files whose |
60 | names are prefixed by the one of the given directories. | |
d43ab529 AC |
61 | The given directories are also treated as a search path for |
62 | relative filename requests. | |
63 | .Pp | |
64 | The options are: | |
65 | .Bl -tag -width Ds | |
66 | .It Fl l | |
67 | Logs all requests using | |
68 | .Xr syslog 3 . | |
69 | .It Fl n | |
70 | Suppresses negative acknowledgement of requests for nonexistent | |
71 | relative filenames. | |
72 | .El | |
0fccfdb8 CL |
73 | .Sh SEE ALSO |
74 | .Xr tftp 1 , | |
75 | .Xr inetd 8 | |
76 | .Sh HISTORY | |
77 | The | |
78 | .Nm | |
79 | command appeared in | |
80 | .Bx 4.2 . |