Index | Thread | Search

From:
Chaz Kettleson <chaz@pyr3x.com>
Subject:
tftpd: document default chroot directory
To:
tech@openbsd.org
Date:
Sun, 13 Oct 2024 20:56:49 -0400

Download raw body.

Thread
Hello,

The default daemon_flags for tftpd(8) in /etc/rc.d/tftpd is '/tftpboot'.
pxeboot(8) says /tftpboot is the "Default root directory for tftpd(8)".
Update tftpd.8 to similarly note the default directory is /tftpboot.

-- 
Chaz

diff --git a/usr.sbin/tftpd/tftpd.8 b/usr.sbin/tftpd/tftpd.8
index c0cecf145f2..2a8be10d110 100644
--- a/usr.sbin/tftpd/tftpd.8
+++ b/usr.sbin/tftpd/tftpd.8
@@ -152,6 +152,10 @@ to
 on startup;
 the remote host is not expected to pass the directory
 as part of the file name to transfer.
+By default
+.Nm
+chroots to
+.Ar /tftpboot .
 .El
 .Sh SEE ALSO
 .Xr tftp 1 ,