HP-UX System Administrator's Guide: Routine Management Tasks

Creating an FTP Shutdown Message
The ftpshut command allows you to create a shutdown message file that warns users
before FTP shuts down. The FTP daemon checks this file at intervals to determine the
shutdown time. (You must be superuser to execute ftpshut.)
After the shutdown has occurred, you must enter the ftprestart command to remove
all the shutdown message files from the real, anonymous, and virtual user accounts.
These message files are created by the ftpshut utility.
For details on creating a FTP shutdown message, see the ftpshut(1) and the ftprestart(1)
manpages and also Chapter 2 of the Installing and Administering Internet Services manual.
Logging FTP Session Information
You can specify FTP session logging using the log commands keyword in the
/etc/ftpd/ftpaccess file.
log commands Enables/disables logging of an FTP session to syslog, including
commands, logins, login failures, and anonymous FTP activity.
(This entry overrides the -L option specified for the ftp entry in
/etc/inetd.conf.)
NOTE: To enable the /etc/ftpd/ftpaccess file, you must specify the -a option
in the ftp entry of the /etc/inetd.conffile.
For details on the log commands keyword, see the ftpaccess(4) manpage.
Logging FTP File Transfers
You can log file transfer information from the FTP server daemon to the
/var/adm/syslog/xferlog log file. The xferlog file records file transfer
information such as current time, file transfer time, remote host, file name, file size,
whether the file transfer was in ASCII or binary format.
Configuring Logging in the /etc/ftpd/ftpaccess File
To log incoming and outgoing FTP file transfers edit the /etc/ftpd/ftpaccess file,
using the log transfers keyword.
log transfers
Enables/disables logging of file transfers for real or anonymous
FTP users to/var/adm/syslog/xferlog. Logging of transfers
to the server (incoming) can be enabled separately from transfers
from the server (outgoing).
NOTE: To enable the /etc/ftpd/ftpaccess file you must specify the -a option
in the ftp entry of the /etc/inetd.conffile.
For more information, see the ftpaccess(4) manpage and the xferlog(5) manpage.
Managing FTP 121