Newsgroups: comp.unix.aux
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!bronze!cricket.bio.indiana.edu!gilbertd
From: gilbertd@cricket.bio.indiana.edu (Don Gilbert)
Subject:  How to log ftpd calls?
Message-ID: <1991Jun10.214806.8066@bronze.ucs.indiana.edu>
Sender: news@bronze.ucs.indiana.edu (USENET News System)
Organization: Biology, Indiana University - Bloomington
Date: Mon, 10 Jun 91 21:48:06 GMT
Lines: 30


Can I get ftpd to log usage?  I've put an anonymous ftp archive
on my a/ux mac temporarily, and would like to keep track of amount
of usage (and computer names of users if possible).

According to manual page for ftpd, there is a flag to cause it to log 
usage (-l).  But ftpd is called by inetd, as indicated by the field 
in the file /etc/servers.  The man page for inetd says nothing about
how to feed command-line flags to the deamons that it runs.  I tried 
putting commands on that line, but no luck.

 ftpd(1M)                                                 ftpd(1M)
 NAME
	  ftpd - Internet File Transfer Protocol server
 SYNOPSIS
	  /usr/etc/in.ftpd [-d] [-l] [-ttimeout]

This is where inetd looks for deamon to associate with ftp port:
	cricket % cat /etc/servers
	ftp     tcp     /usr/etc/in.ftpd
	telnet  tcp     /usr/etc/in.telnetd
	...

This does not work (or should it?):
	cricket % cat /etc/servers
	ftp     tcp     /usr/etc/in.ftpd -l >> /tmp/ftp.log
	...
-- 
Don Gilbert                                     gilbert@bio.indiana.edu
biocomputing office, biology dept., indiana univ., bloomington, in 47405
