HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

f
ftpd(1M) ftpd(1M)
reserved ports can result in the misuse of
ftpd. The security ramifications should be
understood before the option is turned on.
-P Enables third party transfer.
-q | -Q Determines whether the daemon uses the PID les. These files are required by the
limit directive to determine the number of current users in each access class. Disa-
bling the use of the PID files disables user limits. The default (
-q) specifies to use the
PID files. Specify
-Q to disable using the PID files. The
-Q option can be used when
testing the server as a normal user when access permissions prevent the use of the
PID files. Large, busy sites which do not wish to impose limits on the number of con-
current users may also consider disabling the PID files.
-r rootdir Instructs the daemon to chroot (see chroot(2)) to the specified rootdir immediately
upon loading. This can improve system security by limiting the files which may be
damaged should a break-in occur through the daemon. This option is like anonymous
FTP. For this option to work properly additional files may be needed under the
specified rootdir, which can vary from system to system.
-s | -S Runs the daemon in standalone operation mode. The -S option runs the daemon in
the background and is useful in startup scripts during system initialization (that is, in
rc.local). The -s option leaves the daemon in foreground and is useful when run-
ning from init (see init(1M)).
-t timeout Causes ftpd to timeout inactive sessions after timeout seconds. By default, ftpd
terminates an inactive session after 15 minutes. A timeout value of 0 implies that
there is no timeout value and ftpd is set to an infinite timeout period. If timeout is
set to a value more than maxtimeout (see the
-T maxtimeout option), timeout will be
set to the maxtimeout value.
-T maxtimeout
A client can also request a different timeout period. The -T option sets to maxtimeout
the maximum timeout that client can request, in seconds. By default, the maximum
timeout is 2 hours. A maxtimeout value of
0 implies that there is no timeout value
and ftpd is set to an infinite timeout period.
-u umask Change default ftpd umask from 027 to umask.
-U Disables the use of sendfile() and uses send() for sending data. Use this
option if the link cannot handle more than one buffer per packet (for example, Gigabit
Ethernet).
-v The debugging information is written to the syslog file.
-V Causes the program to display copyright and version information, then terminate.
-w | -W Determines whether the user logins are to be recorded in the wtmps and
btmps
files. If the -W option is specified, user logins are not recorded in the wtmps or btmps
file. The default (-w) is used to record every login, logout, and bad login attempts.
-X Specifies that the output created by the -i and -o options is not saved to the
xfer-
log
file but saved via syslog so that the output can be collected from several hosts
on one central loghost.
ftpd currently supports the following commands (uppercase and lowercase are interpreted as equivalent):
Command Description
ABOR
Abort previous command
ACCT Specify account (ignored)
ALLO Allocate storage (vacuously)
APPE Append to a file
CDUP Change to parent of current working directory
CWD Change working directory
DELE Delete a file
EPSV Sets the server to listen on a data port and wait for a connection
EPRT Use extended address for data connection
HELP Give help information
LIST Give list files in a directory (ls -l)
260 Hewlett-Packard Company 2 HP-UX 11i Version 3: February 2007