Installing and Administering Internet Services

52 Chapter2
Installing and Configuring Internet Services
Configuring Logging for ftp
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 or 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
(outbound).
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.
Configuring Logging in the /etc/inetd.conf File
To log incomingand outgoing ftp file transfers, edit the /etc/inetd.conf
file using the -i and -o options with the ftp entry.
-i This option logs all the incoming files received by the
ftp server to the /var/adm/syslog/xferlog log file.
This option is overridden by the log transfers entry
in the /etc/ftpd/ftpaccess file.
-o This option logs all outgoing files transmitted by ftpd to
/var/adm/syslog/xferlog. This option is overridden
by the log transfers entry in the
/etc/ftpd/ftpaccess file.
Example of Configuring Logging in /etc/inetd.conf
In the following example, the /etc/inetd.conf entry logs both incoming
and outgoing ftp file transfers.
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -l -d -i -o