From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tom Linden Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Anonymous ftp logs Date: Mon, 08 Sep 2003 10:14:18 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063041734 27673 80.91.224.249 (8 Sep 2003 17:22:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2003 17:22:14 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Sep 08 19:22:36 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19wPil-0004OR-00 for ; Mon, 08 Sep 2003 19:22:35 +0200 Original-Received: (qmail 11722 invoked by uid 5); 8 Sep 2003 17:22:03 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11712 invoked by uid 49493); 8 Sep 2003 17:22:02 -0000 Original-Received: from tom@kednos.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-2.7/5.0):. Processed in 19.905128 secs); 08 Sep 2003 17:22:02 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 8 Sep 2003 17:21:42 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HKW00LNIO85V7@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 08 Sep 2003 13:21:42 -0400 (EDT) Original-Received: from freja.kednos.com (mail.kednos.COM [206.55.236.242]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with SMTP id <0HKW008CHO83GT@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 08 Sep 2003 13:21:40 -0400 (EDT) Original-Received: from 206-55-236-250.static.mbay.net (206.55.236.250) by freja.kednos.com (V5.1-15H, OpenVMS V7.3 Alpha); Mon, 08 Sep 2003 10:21:32 -0700 (PDT) Original-To: Tru64 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:5292 Thanks to Joseph.Senulis We use tcpwrappers ftp://ftp.porcupine.org/pub/security/index.html and http://www.cert.org/security-improvement/implementations/i041.07.html to log this sort of thing. Also, do a man ftpd and look at the -l option. T64 5.1 has this, but we don't use it at this time. I don't know about 4.0d. --Joe Hugh.Pritchard Try this, which I use to log activity of my ftp daemon (*not* of people using the ftp client, unfortunately): In /etc/inetd.conf, find the ftp line, and modify the last field to ftp stream tcp nowait root /usr/sbin/ftpd ftpd -l -t 1800 This tells ftpd to log activity (-l) and to time out after 1/2 an hour of inactivity (-t 1800). Send a hangup to inetd to tell it to look at configuration again. Hugh Lawrie I think what you need to do is is to add a "-l" after the ftpd int the /etc/inetd.conf file. This turns on ftp logging to the /var/adm/syslog.dated/current/daemon.log file. This line in my file looks like: ftp stream tcp nowait root /usr/sbin/tcpd ftpd -l The difference here, /usr/sbin/tcpd, is because we use tcpwrappers for extra security but the same applies either way. Lucio Chiappetti Assuming you are using the ftpd daemon which comes with the system and not WU ftpd or any other ... Edit /etc/inetd.conf as follows ftp stream tcp nowait root /usr/sbin/ftpd ftpd -l i.e. add -l to the last field (see man ftpd). This will enable logging. The logs will be (by date) in /var/adm/syslog.dated/*/daemon.log I have this enabled and a daily crontab which reformats it into an html page which I check every day. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003