FTP logging

speicher at mitre.arpa speicher at mitre.arpa
Tue Feb 9 12:57:00 AEST 1988


I manage a VAX 11/785 running Ultrix 1.2.  The inet daemon on this system
looks at the file "/etc/inetd.conf" to determine what internet daemons run
(telnet, ftp, etc) and what pathnames to use when calling them.
Here's what the entry for ftpd looks like:

ftp	stream	tcp	nowait	/etc/ftpd	ftpd

The manual entry for the config file says that you can append options to
the last item in the list.  I assume that the last occurrence of "ftpd" in
this list is argv[0] when the program is called by inetd.

The manual for the ftp daemon (ftpd) says that ftpd can be invoked with a 
"-l" option to log transactions to the standard output.  Hence, they recommend:

/etc/ftpd -l > logfile

to log transactions.  Here is my problem.  Changing the line to read:

ftp	stream	tcp	nowait	/etc/ftpd	ftpd -l > logfile

won't work because the ">" gets passed directly to ftpd.

Any suggestions?
Clay Speicher -  speicher at mitre.arpa



More information about the Comp.unix.wizards mailing list