User Tools

Site Tools


aix:debug_ftp

FTP logging on AIX

By default nothing is logged even if you add an option in the ftpd starting.

You could try using the -d flag instead of -l, and changing the “daemon.info” in /etc/syslog.conf to “daemon.debug”.

[root@nim]/root# cat /etc/inetd.conf | grep ftp
ftp     stream  tcp6    nowait  root    /usr/sbin/ftpd  ftpd -l
[root@nim]/root# refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.
[root@nim]/root# lssrc -ls inetd
Subsystem         Group            PID          Status
 inetd            tcpip            2949864      active
Debug         Inactive
Signal        Purpose
 SIGALRM      Establishes socket connections for failed services
 SIGHUP       Rereads configuration database and reconfigures services
 SIGCHLD      Restarts service in case the service dies abnormally
Service       Command                  Arguments                Status
 ftp          /usr/sbin/ftpd           ftpd -l                  active
 ttdbserver   /usr/dt/bin/rpc.ttdbserver rpc.ttdbserver 100083 1  active

Add a specific line for FTPD into /etc/syslog.conf the following line

daemon.info /var/log/syslog/ftp_logging.log rotate size 500k files 4 compress

Initialize syslog file and refresh the daemon

[root@nim]/root# mkdir -p /var/log/syslog; touch /var/log/syslog/ftp_logging.log 
[root@nim]/root# refresh -s syslogd
aix/debug_ftp.txt · Last modified: 2021/01/01 21:22 (external edit)