From 9ba6d8e42067b873b9f0db55b8b3e674a2e33de1 Mon Sep 17 00:00:00 2001 From: Mike Heffner Date: Tue, 25 Sep 2001 02:43:45 +0000 Subject: Improve the description on how to construct ~ftp/pub. Specifically, don't instruct users to set the directory mode 777. PR: 30690 Obtained from: NetBSD (with modification) MFC after: 2 weeks --- libexec/ftpd/ftpd.8 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'libexec') diff --git a/libexec/ftpd/ftpd.8 b/libexec/ftpd/ftpd.8 index d3f8c45d9d5a..f100719db5a8 100644 --- a/libexec/ftpd/ftpd.8 +++ b/libexec/ftpd/ftpd.8 @@ -391,11 +391,13 @@ The file if present, will be printed after a successful login. These files should be mode 444. .It Pa ~ftp/pub -Make this directory mode 777 and owned by -.Dq ftp . -Guests -can then place files which are to be accessible via the anonymous -account in this directory. +This directory and the subdirectories beneath it should be owned +by the users and groups responsible for placing files in them, +and be writable only by them (mode 755 or 775). +They should +.Em not +be owned or writable by ftp or its group, otherwise guest users +can fill the drive with unwanted files. .El .Pp If the system has multiple IP addresses, -- cgit v1.3