Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Logging 2

Status
Not open for further replies.

AIXtexas

Technical User
Feb 5, 2002
80
US
Is there a way to turn on ftp logging on aix so we will know every time someone uploads or downloads a file?

Shane
 
From the ftpd man page:

-l Sends logging information about ftpd daemon operations to the syslogd daemon. If you specify the -l flag, you must edit the /etc/syslog.conf file and add the
following entry:

daemon.info FileName

If you do not edit the /etc/syslog.conf file, no messages are produced. After changing the /etc/syslog.conf file, run the refresh -s syslogd command or kill -1 SyslogdPID command to inform the syslogd daemon of the changes to its
configuration file. For more information about debug levels, refer to the /etc/syslog.conf file.

I think you need to edit inetd.conf to include the -l option to have it log by default. Something like:

ftp stream tcp6 nowaitroot /local/bin/tcpd6 ftpd -l

might do?
 
You will also have to touch the log file before refreshing.

I'm pretty sure syslogd won't log to a file if it doesn't already exist.

Rod Knowlton

IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Thanks everyone I got this working. But, is there a way to show the pathname of the files being pushed or pulled in the /tmp/syslog.out file?

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

I've never tried the debug output from ftpd, but it might have the info you want. Be aware that most programs that provide debug output will output a LOT of information. Make sure the log file has plenty of room to grow until you have a handle on how much it'll output.

Actually, you should probably consider it a Best Practice to place any files that might grow uncontrollably on their own filesystems, so they can only jam up the process creating them and not the whole system.

Rod Knowlton

IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top