Path: utzoo!attcan!uunet!mcsun!sunic!dkuug!freja!skinfaxe!seindal From: seindal@skinfaxe.diku.dk (Rene' Seindal) Newsgroups: nordunet.sources.list,comp.protocols.tcp-ip Subject: free ftpd with statistics gathering. Message-ID: <1990Feb14.120354.15038@diku.dk> Date: 14 Feb 90 12:03:54 GMT Sender: news@diku.dk (The Netnews System) Organization: Department Of Computer Science, University Of Copenhagen Lines: 61 I have pieced together a version of Berkeleys ftpd, with all non-redistributable code rewritten. It is based on a version found on uunet.uu.net. I have added a message of the day for anonymous ftp, and some statistics gathering of anonymous file transfers. These things were mostly made for local convenience, but if they can be of use for others, great. You'll find it in /pub/misc/ftpd.tar.Z, on ftp.diku.dk (129.142.96.1). Rene' Seindal (seindal@diku.dk) Here's the README file I made back then. --- README.DIKU ------------------------------------------------------------- This is a modified version of the version of ftpd found on uunet.uu.net as of 20 Jan 1990. The modifications are as follows. The STAT command without arguments have been disabled, because the code caused some unresolved externals. As it is not normally used, it shouldn't be a problem. If the code does compile at your site, remove the definition of NO_STATCMD from the Makefile. A motd for anonymous ftp has been added. To disable this, remove the definition of MOTD from the Makefile. If enabled, the motd lives in /etc/motd after the server has chroot'ed. If you place anonymous ftp in /, you will have to change the name. Logging of uses of anonymous ftp is added. This is handy, to see which files are used and which aren't. To disable this, remove the definition of STATS from the Makefile. If enabled, the logfile lives in /usr/adm/ftp-log. Finally, the globbing routines have been completely rewritten, which should make the whole thing freely redistributable. If yo have trouble with any of the things I have changed, please write to me. My address is seindal@diku.dk. Rene' Seindal -- Wed Jan 24 16:33:29 1990 ------------------------------------------------------------------------ Here's an excerpt of our log file, as an example. freja 10 $ tail -5 /usr/adm/ftp-log Feb 14 07:00:49 1990!guest!UNSVAX.NEVADA.EDU!/pub/nn/nn-6.3.7.tar.Z!348361!102 Feb 14 07:13:41 1990!aa!thales.math.umass.edu!/pub/README!2278!1 Feb 14 07:18:23 1990!aa!thales.math.umass.edu!/pub/misc/hosts.dk!5692!4 Feb 14 07:18:32 1990!guest!UNSVAX.NEVADA.EDU!/pub/nn/nn-6.3.7.tar.Z!348361!380 Feb 14 07:20:45 1990!tot!otax.tky.hut.fi!/pub/GNU/gcc-diff/1.36-1.37.Z!165604!61 The fields are the date, the password, the host (or ipaddr), the file fetched, its size, and the number of seconds the transfer took. It is just about what I could squeeze out of the program. We mostly use the log file to see which files are unused, or less used, because we are *always* low on space for all the things we'd like to have available. We can then remove the least used files first.