Subject: [956] Syslog and wu-ftpd

From: Maarten Boekhold <[email-masked]>
Date: Wed, 21 Dec 1994 11:22:26 +0200 (METDST)

Hi,

I've been trying for days now, and I can't get wu-ftpd to log things 
throught syslog....

I have the following line in /etc/inetd.conf:

ftp     stream  tcp     nowait  root  /usr/local/lib/wu-ftpd/bin/ftpd   
								ftpd -a -l

(in one piece :-)

and the following in /etc/syslog.conf:

daemon.info                                     /var/log/ftp.info
daemon.err                                      /var/log/ftp.err
daemon.debug                                    /var/log/ftp.debug
daemon.notice                                   /var/log/ftp.notice

This didn't work (btw. I also tried local1 as facility, as it is in the 
generic config.h of wu-ftpd, didn't work either).

Then I realized that logging to syslogd is done throught /dev/log (it is, 
isn't it?), so I created ~ftp/dev/log (and also ~/ftp/var/log, just to be 
sure), but it didn't help either.

Now I'm completely lost...

*How I'm I supposed to get wu-ftpd logging things to syslog? *

btw. I have logging of real users commands to syslog enabled, and I'm 
running Solaris 2.3, now on a sparc classic, but soon on a sparc20.

Maarten

_____________________________________________________________________________
|    Maarten Boekhold, Faculty of Electronical Engineering TU Delft,  NL    |
|        [email-masked]      [email-masked]         |
|          <a href="http://morra.et.tudelft.nl/~boekhold">me</a>            | 
-----------------------------------------------------------------------------

---

From: [email-masked] (Wade Warrens)
Date: Wed, 21 Dec 1994 09:08:34 -0800 (PST)

> Maarten Boekhold of <[email-masked]> writes:
> 
> > ...
> 	Yes, I know the problem.  I too spent weeks trying to figure
> 	this out on Solaris 2.3.  Don't dispair it can be done.
> 
> 	My entry in syslog
> 
> 	daemon.info                     /var/adm/daemon.log
> 
> 	My inetd.conf
> 	ftp     stream  tcp  nowait  root  /usr/local/etc/ftpd     in.ftpd 
> 
> 
> 	I had to create the log file by hand with access rw-rw-rw.

I don't know about Solaris, but on SunOS 4.1.3, creating the file
manually is critical. Also, restarting syslogd:

% touch /var/adm/daemon.log
% kill -HUP <the syslog pid>

Also, the file /var/adm/xferlog was automatically created by ftpd,
without any syslog.conf changes on my part.  Look like
ftpd does not use syslog to write to xferlog.

--wade

---

From: [email-masked]
Date: Wed, 21 Dec 1994 10:22:53 -0500

My entry in syslog

	My inetd.conf

	I had to create the log file by hand with access rw-rw-rw.
	I also modified ftpd.c to call closelog() on exit.

	Things seem to work now.  Good Luck

	If you notice that some clients can't handle the output of
	ls, but can handle ls -l.  I need a fix for that problem.

	John LeBrun
	[email-masked]