From owner-freebsd-questions Fri Apr 16 8: 6:24 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 4128815109 for ; Fri, 16 Apr 1999 08:06:21 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id LAA29243; Fri, 16 Apr 1999 11:04:10 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199904161504.LAA29243@cc942873-a.ewndsr1.nj.home.com> Subject: Re: FTP server In-Reply-To: <001501be87cd$c6e38ec0$35b943a4@shan.resnet.ucla.edu> from Shan-Min Chao at "Apr 15, 99 10:55:48 pm" To: shanmin@ucla.edu (Shan-Min Chao) Date: Fri, 16 Apr 1999 11:04:10 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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