Installing and Administering Internet Services
Chapter 2 51
Installing and Configuring Internet Services
Configuring Logging for ftp
Configuring Logging for ftp
You can log both ftp session information and file transfer information, as
explained in the following sections.
Logging ftp Sessions
You can specify ftp session logging using the log commands keyword in
the /etc/ftpd/ftpaccess file.
log commands Enables or 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.)
For details on the preceding keyword, see the ftpaccess(4) manpage.
NOTE To enable the /etc/ftpd/ftpaccess file you must specify the -a option
in the ftp entry of the /etc/inetd.conf file.
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,
filename, file size, whether the file transfer was in ascii or binary format,
etc. For details on all types of information recorded in the xferlog file,
see the xferlog(5) manpage.
You can enable file transfer logging either by editing the
/etc/ftpd/ftpaccess file or by editing the /etc/inetd.conf file. Each
of these methods is described following.