Received: (at submit) by bugs.debian.org; 8 Dec 2000 18:20:31 +0000 From sleclerc_aweb@mail.isdnet.net Fri Dec 08 12:20:31 2000 Return-path: Received: from mailhub6.isdnet.net [195.154.209.26] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 144S8E-00017k-00; Fri, 08 Dec 2000 12:20:30 -0600 Received: from aweb-dns.actionweb.fr (aweb-dns.actionweb.fr [195.154.249.123]) by mailhub6.isdnet.net (8.9.3/8.9.3) with ESMTP id TAA25804 for ; Fri, 8 Dec 2000 19:20:25 +0100 (CET) Received: from acae51bc.ipt.aol.com ([172.174.81.188] helo=linux-dev.actionweb.fr) by aweb-dns.actionweb.fr with asmtp (Exim 3.12 #1 (Debian)) id 144Sb7-0001kO-00 for ; Fri, 08 Dec 2000 19:50:21 +0100 Received: from [192.168.61.20] (helo=[192.168.61.20]) by linux-dev.actionweb.fr with smtp (Exim 3.20 #1 (Debian)) id 144S7Y-0003Ad-00 for ; Fri, 08 Dec 2000 19:19:48 +0100 Subject: proftpd logs Date: Fri, 8 Dec 2000 19:19:50 +0100 x-sender: sleclerc_aweb@mail.actionweb.fr x-mailer: Claris Emailer 2.0v3, January 22, 1998 From: Stephane Leclerc To: "Bug Debian" Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Message-Id: Delivered-To: submit@bugs.debian.org Package: proftpd Version: 1.2.0pre10-2 Severity: whishlist Do you agree to insert this modification to the proftpd logfile system in the next release? - Move proftpd logs in /var/log/proftpd - in /etc/cron.monthly/proftpd: --------- #!/bin/sh # # cron script to rotate the proftpd server logfiles, based on the # wu-ftpd script by Peter Tobias . cd /var/log/proftpd echo "Rotating proftpd server logfiles:" # xferlog.legacy savelog -u root -g adm -m 640 -c 12 /var/log/proftpd/xferlog.legacy ftpstats -a -r -l 2 -d 2> /dev/null >/var/log/proftpd/xferlog.legacy savelog -u root -g adm -m 640 -c 7 /var/log/proftpd/xferlog.legacy # access.log savelog -u root -g adm -m 640 -c 12 /var/log/proftpd/access.log ftpstats -a -r -l 2 -d 2> /dev/null >/var/log/proftpd/access.log savelog -u root -g adm -m 640 -c 7 /var/log/proftpd/access.log # auth.log savelog -u root -g adm -m 640 -c 12 /var/log/proftpd/auth.log ftpstats -a -r -l 2 -d 2> /dev/null >/var/log/proftpd/auth.log savelog -u root -g adm -m 640 -c 7 /var/log/proftpd/auth.log --------- - in /etc/proftpd.conf: --------- # Logging LogFormat default "%h %l %u %t \"%r\" %s %b" LogFormat auth "%v [%P] %h %t \"%r\" %s" LogFormat write "%h %l %u %t \"%r\" %s %b" TransferLog /var/log/proftpd/xferlog.legacy ExtendedLog /var/log/proftpd/access.log WRITE,READ write ExtendedLog /var/log/proftpd/auth.log AUTH auth --------- - It will be fine to use (define) a UID/GID "ftp" in place of nobody/nogroup, and to have /etc/ftpusers installed too. Stef... .......................................................... . Linux - Debian - php4 - Apache - MySQL - Infogerance . . email: info@actionweb.fr - http://www.actionweb.fr . . Tel: (0)141 906 100 - Fax: (0)141 906 101 . ..........................................................