Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 1999 11:04:10 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        shanmin@ucla.edu (Shan-Min Chao)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FTP server
Message-ID:  <199904161504.LAA29243@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <001501be87cd$c6e38ec0$35b943a4@shan.resnet.ucla.edu> from Shan-Min Chao at "Apr 15, 99 10:55:48 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Shan-Min Chao wrote,
> Hi,
>   I have a simple questions concerning an FTP server:
> I know using the 'last' command can tell you who is 
> logged on your FTP server.How can you track what 
> a person is downloading from your FTP server?  
> Please respond direct.  Thanks!

RTFM. From man ftpd,

     -l      Each successful and failed ftp(1) session is logged using syslog
             with a facility of LOG_FTP.  If this option is specified twice,
             the retrieve (get), store (put), append, delete, make directory,
             remove directory and rename operations and their filename argu-
             ments are also logged.  Note: LOG_FTP messages are not displayed
             by syslogd(8) by default, and may have to be enabled in
             syslogd(8)'s  configuration file.

So, if you want to track _everything,_ modify your ftp line in
/etc/inetd.conf to,

ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l -l -S

And then add where you want it logged in /etc/syslogd.conf. See the
manpage for syslogd(8) on how to do that.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904161504.LAA29243>