This version of ftpd enables logging via the syslog daemon (syslogd)
so make sure that syslogd is running (and started by /etc/inittab).

This is a direct port of the latest ftpd for A/UX. As well as the
above logging capability, it also fixes some security holes with the
use of anonymous ftp. It requires that the header files in
/usr/include/arpa be updated. These modifications have been done
for A/UX 2.0 and are included in ./arpa2.0. Due to the differences between
2.0 and 2.0.1 in include file, I have also "included" :) 2.0.1 versions of
the arpa files in ./arpa2.0.1 and 3.0 versions in arpa3.0.

I have changed the logging capability a little bit in this port. For
one thing, logging is the DEFAULT case. For another, anonymous ftp
logins are looked at more closely than "known" user logins. If you
have a machine that has a LOT of anon-ftp logins, this could create a
very large syslog file for ftpd... If you want to disable default logging,
you must edit ftpd.c and look for the place where logging is set to 1
(I have a comment right above it: you can search for "jim@jagubox" for
the place where this is done) and set iy to 0. If you want to reduce the
amount of logging that ftpd does, then you must sift through all the
source files and, where you DON'T want logging, change the calls to
"jjreply" to just "reply." If you simply don't want to take special notice
when an anon-ftp is used, just make sure that the variable guestwatch in
the source file is never set to 1 (again, look for "jim@jagubox" for the
place where this is done).

The file locsyslog.c enables in.ftpd to log messages via syslog. Using
the library logging functions don't work with anonymous ftp, most probably
due to the chroot() done with anon-ftps. This file "replaces" the library
versions for this application. One thing you may want to change in locsyslog.c
is the definition of MY_IP_ADDR. If undefined, it defaults to "127.0.0.1"
which is the IP address of your "loopback" host. Hence, all syslog messages
will be logged as coming from "loopback" (or "local", etc...). To get your
REAL host name in the loggings, uncomment out the definition of MY_IP_ADDR
(which is above the test) and set it equal to your host IP address. Please
note that all of the logging messages are at the LOG_INFO level, so
unless you have setup syslogd (in syslog.conf) to catch "daemon.info" or
"daemon.debug", you'll miss the messages

To compile, type 'make' and to install it 'make install'...


===========================================================================
 #include <std/disclaimer.h>
                                 =:^)
           Jim Jagielski                    NASA/GSFC, Code 711.1
     jim@jagubox.gsfc.nasa.gov               Greenbelt, MD 20771
===========================================================================
