| Summary: | Bad advice in ftpd man page | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Alan Batie <alan> |
| Component: | misc | Assignee: | Mike Heffner <mikeh> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.3-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Alan Batie
2001-09-20 17:35:39 UTC
The ftpd man page, in the section on setting up an anonymous
ftp server, recommends setting ~ftp/pub world writable. This
is a good way to end up with a disk full of warez:
~ftp/pub Make this directory mode 777 and owned by ``ftp''.
Guests can then place files which are to be accessible
via the anonymous account in this directory.
Fix:
Change to read (or something similar):
~ftp/pub Make this directory mode 755 and owned by ``ftp''.
Place the files you want to share in here with
mode 644. If you want local users to be able to
publish files here, create subdirectories for them,
owned by their account and group and mode 755.
Be sure to warn them not to make anything writeable
by "world", or your disk will end up getting filled
with "warez" (illegal copies of software).
On 20-Sep-2001 Alan Batie wrote:
|
|
| Change to read (or something similar):
|
| ~ftp/pub Make this directory mode 755 and owned by ``ftp''.
| Place the files you want to share in here with
| mode 644. If you want local users to be able to
| publish files here, create subdirectories for them,
| owned by their account and group and mode 755.
| Be sure to warn them not to make anything writeable
| by "world", or your disk will end up getting filled
| with "warez" (illegal copies of software).
How about the following? (stolen from the lukemftpd manpage)
~ftp/pub 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 not be owned or
writable by ftp or its group.
Mike
--
Mike Heffner <mheffner@[acm.]vt.edu>
Blacksburg, VA <mikeh@FreeBSD.org>
State Changed From-To: open->analyzed Committed to current. Responsible Changed From-To: freebsd-bugs->mikeh MFC reminder. State Changed From-To: analyzed->closed Fix MFC'd. |