HP-UX Reference (11i v2 03/08) - 1M System Administration Commands A-M (vol 3)

f
ftpd(1M) ftpd(1M)
under the anonymous ftp directory. Such entries should have
* for passwords.
Group IDs must be listed in the anonymous FTP group file,
˜ftp/etc/group
. The
path names of home directories in
˜ftp/etc/passwd
must be with respect to the
anonymous FTP home directory.
~ftp/etc/group
This file should contain the group names associated with any group IDs in file
~ftp/etc/passwd
and any group IDs of files in the anonymous FTP subdirectories.
~ftp/pub (optional)
This directory is used by anonymous FTP users to deposit files on the system. It
should be owned by user ftp and should be mode 777 (readable and writable by all).
~ftp/dist (optional)
Directories used to make files available to anonymous ftp users should be mode 555
(not writable), and any files to be distributed should be owned by root and mode 444
(readable only) so that they cannot be modified or removed by anonymous FTP users.
Note: The steps that are followed to create an anonymous account are used to create a guest account
also.
DIAGNOSTICS
ftpd replies to FTP commands to ensure synchronization of requests and actions during file transfers,
and to indicate the status of ftpd. Every command produces at least one reply, although there may be
more than one. A reply consists of a three-digit number, a space, some text, and an end of line. The
number is useful for programs; the text is useful for users. The number must conform to this standard,
but the text can vary.
The first digit of the message indicates whether the reply is good, bad, or incomplete. Five values exist
for the first digit. The values and the interpretations of the values are:
1 The requested action is being initiated; expect another reply before proceeding with a new
command.
2 The requested action is complete. The server is ready for a new request.
3 The command has been accepted, but the requested action requires more information.
4 The command was not accepted, the requested action failed, but the error condition is tem-
porary and the action can be requested again.
5 The command was not accepted, the requested action failed, and the error condition would
most likely occur again if the same command sequence is repeated.
The second digit indicates the functional area that the message addresses. The values of the second digit
and the interpretations of these values are:
0 Syntax. A message with a 0 for the second digit indicates that a syntax error occurred.
1 Information. A message with a 1 as the second digit indicates that the message is in reply
to a request for information.
2 Connections. A message with a 2 as the second digit indicates that the message is a reply
to a request for control and data connection information.
3 Authentication and accounting. A message with a 3 as the second digit indicates that the
message is a reply to a login or accounting procedure.
4 Not currently specified.
5 File system. A message with a 5 as the second digit indicates that the text following the
number contains information concerning the status of the server file system.
The third digit provides a further clarification of the information supplied by the second digit. Following
are several examples of messages. Note that
ftpd’s replies match the number but not the text.
110 Restart marker reply. MARK yyyy
=mmmm where yyyy is a user process data stream
marker, and mmmm is ftpd’s equivalent marker
120 Service ready in nnn minutes
200 Command okay
211 System status, or system help reply
Section 1M244 Hewlett-Packard Company 5 HP-UX 11i Version 2: August 2003