Deleted Added
full compact
ftpd.8 (25187) ftpd.8 (25283)
1.\" Copyright (c) 1985, 1988, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)ftpd.8 8.2 (Berkeley) 4/19/94
1.\" Copyright (c) 1985, 1988, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)ftpd.8 8.2 (Berkeley) 4/19/94
33.\" $Id: ftpd.8,v 1.16 1997/04/26 12:23:51 davidn Exp $
33.\" $Id: ftpd.8,v 1.17 1997/04/27 08:29:21 davidn Exp $
34.\"
35.Dd April 19, 1994
36.Dt FTPD 8
37.Os BSD 4.2
38.Sh NAME
39.Nm ftpd
40.Nd
41Internet File Transfer Protocol server

--- 239 unchanged lines hidden (view full) ---

281.Dq anonymous
282or
283.Dq ftp
284account (see next item).
285This facility may also be triggered by enabling the boolean "ftp-chroot"
286capability in
287.Xr login.conf 5 .
288However, the user must still supply a password.
34.\"
35.Dd April 19, 1994
36.Dt FTPD 8
37.Os BSD 4.2
38.Sh NAME
39.Nm ftpd
40.Nd
41Internet File Transfer Protocol server

--- 239 unchanged lines hidden (view full) ---

281.Dq anonymous
282or
283.Dq ftp
284account (see next item).
285This facility may also be triggered by enabling the boolean "ftp-chroot"
286capability in
287.Xr login.conf 5 .
288However, the user must still supply a password.
289This feature is intended as a compromise between a fully anonymous account
290and a fully privileged account.
289This feature is intended as a compromise between a fully anonymous
290account and a fully privileged account.
291The account should also be set up as for an anonymous account.
292.It
293If the user name is
294.Dq anonymous
295or
296.Dq ftp ,
297an
298anonymous ftp account must be present in the password

--- 53 unchanged lines hidden (view full) ---

352.It Pa ~ftp/pub
353Make this directory mode 777 and owned by
354.Dq ftp .
355Guests
356can then place files which are to be accessible via the anonymous
357account in this directory.
358.El
359.Pp
291The account should also be set up as for an anonymous account.
292.It
293If the user name is
294.Dq anonymous
295or
296.Dq ftp ,
297an
298anonymous ftp account must be present in the password

--- 53 unchanged lines hidden (view full) ---

352.It Pa ~ftp/pub
353Make this directory mode 777 and owned by
354.Dq ftp .
355Guests
356can then place files which are to be accessible via the anonymous
357account in this directory.
358.El
359.Pp
360If the system has multiple IP addresses,
361.Nm ftpd
362supports the idea of virtual hosts, which provides the ability to
363define multiple anonymous ftp areas, each one allocated to a different
364internet address.
365The file
366.Pa /etc/ftphosts
367contains information pertaining to each of the virtual hosts.
368Each host is defined on its own line which contains a number of
369fields separated by whitespace:
370.Bl -tag -offset indent -width hostname
371.It hostname
372Contains the hostname or IP address of the virtual host.
373.It user
374Contains a user record in the system password file.
375As with normal anonymous ftp, this user's access uid, gid and group
376memberships determine file access to the anonymous ftp area.
377The anonymous ftp area (to which any user is chrooted on login)
378is determined by the home directory defined for the account.
379User id and group for any ftp account may be the same as for the
380standard ftp user.
381.It statfile
382File to which all file transfers are logged, which
383defaults to
384.Pa /var/log/ftpd .
385.It welcome
386This file is the welcome message displayed before the server ready
387prompt.
388It defaults to
389.Pa /etc/ftpwelcome .
390.It motd
391This file is displayed after the user logs in.
392It defaults to
393.Pa /etc/ftpmotd .
394.El
395.Pp
396Defining a virtual host for the primary IP address or hostname
397changes the default for ftp logins to that address.
398The 'user', 'statfile', 'welcome' and 'motd' fields may be left
399blank, or a single hypen '-' used to indicate that the default
400value is to be used.
401.Pp
402As with any anonymous login configuration, due care must be given
403to setup and maintenance to guard against security related problems.
404.Pp
360If compiled with the
361.Em INTERNAL_LS
362option,
363.Nm ftpd
364will have internal support for handling remote requests to list
365files, and will not execute
366.Pa /bin/ls
367in either a chrooted or non-chrooted environment.

--- 44 unchanged lines hidden ---
405If compiled with the
406.Em INTERNAL_LS
407option,
408.Nm ftpd
409will have internal support for handling remote requests to list
410files, and will not execute
411.Pa /bin/ls
412in either a chrooted or non-chrooted environment.

--- 44 unchanged lines hidden ---