tftpd8
Trivial file transfer protocol daemon
Usage
tftpd [-46cdivw]
[-l
address]
[-p
port]
[-r
socket]
directory
Overview
tftpd serves directory contents via the Trivial File Transfer Protocol.
The use of tftp(1) does not require an account or password on the remote system. Due to the lack of authentication information, tftpd will allow only publicly readable files to be accessed. By default files may only be read, unless the -w option is specified. Files may be written only if they already exist and are publicly writable, unless the -c flag is specified. Note that this extends the concept of “public” to include all users on all hosts that can be reached through the network; this may not be appropriate on all systems, and its implications should be considered before enabling TFTP service. tftpd always provides random data at the path /etc/random.seed, and therefore this path will be ignored inside the directory. OpenBSD network bootloaders access this path to harvest entropy during kernel load.
tftpd needs to start as root, then calls chroot(2) into directory, and drops privileges to the “_tftpd” user.
The options are as follows:
-
-4 -
Forces
tftpdto use IPv4 addresses only. -
-6 -
Forces
tftpdto use IPv6 addresses only. -
-c -
Allow new files to be created; otherwise uploaded files must already exist. Files are created with default permissions allowing anyone to read or write to them.
This option implies
-w. -
-d -
Do not daemonize. If this option is specified,
tftpdwill run in the foreground and log to stderr instead of syslog(3). This implies-v. -
-i -
Look up the requested path in the subdirectory named after the client's IP address. For read requests, if the file is not found,
tftpdfalls back on the requested path. Note that no attempt is made to limit the client to its subdirectory. This option cannot be combined with-r. -
-l address -
Listen on the specified address. By default
tftpdlistens on wildcard addresses. -
-p port -
Listen on the specified port. By default
tftpdlistens on the port indicated in the ‘tftp’ service description; see services(5). -
-r socket -
Issue filename rewrite requests to the specified UNIX domain socket.
tftpdwill write lines in the format "IP OP filename", terminated by a newline, where IP is the client's IP address, and OP is one of "read" or "write".tftpdexpects replies in the format "filename" terminated by a newline. All rewrite requests from the daemon must be answered (even if it is with the original filename) before the TFTP request will continue. By defaulttftpddoes not use filename rewriting. This option cannot be combined with-i. -
-v -
Log the client IP, type of request, and filename.
-
-w -
Allow files to be written to.
Releases
61 releases since OpenBSD 2.1; the text changed 23 times.
- 2.1
- 2.2
- 2.3
- 2.4–2.5
- 2.6–2.7
- 2.8
- 2.9
- 3.0–3.2
- 3.3
- 3.4
- 3.5
- 3.6
- 3.7–3.8
- 3.9
- 4.0–4.1
- 4.2
- 4.3–4.4
- 4.5–5.1
- 5.2–5.7
- 5.8–6.2
- 6.3–6.4
- 6.5–7.2
- 7.3–7.7
- 7.8–8.0
-4 since OpenBSD 5.2;
-6 since OpenBSD 5.2;
-c since OpenBSD 3.5;
-d since OpenBSD 5.2;
-i since OpenBSD 6.3;
-l since OpenBSD 4.3;
-p since OpenBSD 5.2;
-r since OpenBSD 5.2;
-v since OpenBSD 5.2;
-w since OpenBSD 7.3.
-s until OpenBSD 5.1.