diff options
author | billf <billf@FreeBSD.org> | 2001-01-25 04:20:25 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2001-01-25 04:20:25 +0000 |
commit | ea6d044997ade8643407bfe172d0f54702f346fa (patch) | |
tree | 00ef2ad8f7694e2ab4b955b8c5e2e3c4165bb58f /libexec/tftpd/tftpd.8 | |
parent | 73de9eb2af2aa657a555f80e5ff0117fea74c064 (diff) | |
download | FreeBSD-src-ea6d044997ade8643407bfe172d0f54702f346fa.zip FreeBSD-src-ea6d044997ade8643407bfe172d0f54702f346fa.tar.gz |
Add -c/C which chroots by IP of tftp client, (i.e. /tftproot/127.0.0.1/).
Diffstat (limited to 'libexec/tftpd/tftpd.8')
-rw-r--r-- | libexec/tftpd/tftpd.8 | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/libexec/tftpd/tftpd.8 b/libexec/tftpd/tftpd.8 index f53229d..41e0a92 100644 --- a/libexec/tftpd/tftpd.8 +++ b/libexec/tftpd/tftpd.8 @@ -41,7 +41,7 @@ Internet Trivial File Transfer Protocol server .Sh SYNOPSIS .Nm /usr/libexec/tftpd -.Op Fl ln +.Op Fl cCln .Op Fl s Ar directory .Op Fl u Ar user .Op Ar directory ... @@ -114,6 +114,25 @@ option is specified. .Pp The options are: .Bl -tag -width Ds +.It Fl c +Changes the default root directory of a connecting host via chroot based on the +connecting IP address. +This prevents multiple clients from writing to the same file at the same time. +If the directory does not exist, the client connection is refused. +The +.Fl s +option is required for +.Fl c +and the specified +.Ar directory +is used as a base. +.It Fl C +Operates the same as +.Fl c +except it falls back to +.Fl s Ns No 's +.Ar directory +if a directory does not exist for the client's IP. .It Fl l Log all requests using .Xr syslog 3 @@ -165,7 +184,11 @@ the .Fl s option was introduced in .Fx 2.2 , -and the +the .Fl u option was introduced in -.Fx 4.2 . +.Fx 4.2 , +and the +.Fl c +option was introduced in +.Fx 5.0 . |