ftpd(8) is not logging

2008-11-28 Thread LÉVAI Dániel
Hi!

I'm using OpenBSD's ftpd(8), and specified the -l option on the command 
line when starting it, which according to the man page, makes ftpd(8) 
to log to syslog with facility LOG_FTP.
Well, I've set up syslog.conf to capture that facility to a file:
LOG_FTP.* /var/log/ftpd

After a `pkill -HUP -x syslogd` unfortunately ftpd(8) won't log 
anything. Even tried the -ll and -d options with ftpd(8), but no 
luck. Grepping through ftpd's source, it seems that indeed it tries to 
log with facility LOG_FTP.
/var/log/wtmp gets updated regularly when a login succeeds.

What could be the problem here?
Thanks in advance!

Daniel

-- 
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ftpd(8) is not logging

2008-11-28 Thread Girish Venkatachalam
On 10:12:46 Nov 28, L?VAI D?niel wrote:
 Hi!
 
 I'm using OpenBSD's ftpd(8), and specified the -l option on the command 
 line when starting it, which according to the man page, makes ftpd(8) 
 to log to syslog with facility LOG_FTP.
 Well, I've set up syslog.conf to capture that facility to a file:
 LOG_FTP.* /var/log/ftpd

Did you give a TAB character between the two tokens?

syslog hates whitespaces. Only tabs between entries on a line.

-Girish



Re: ftpd(8) is not logging

2008-11-28 Thread LÉVAI Dániel
On Friday 28 November 2008 11.26.55 you wrote:
 On 2008-11-28, LIVAI Daniel [EMAIL PROTECTED] wrote:
  Hi!
 
  I'm using OpenBSD's ftpd(8), and specified the -l option on the
  command line when starting it, which according to the man page,
  makes ftpd(8) to log to syslog with facility LOG_FTP.
  Well, I've set up syslog.conf to capture that facility to a file:
  LOG_FTP.* /var/log/ftpd
 
  After a `pkill -HUP -x syslogd` unfortunately ftpd(8) won't log
  anything. Even tried the -ll and -d options with ftpd(8), but
  no luck. Grepping through ftpd's source, it seems that indeed it
  tries to log with facility LOG_FTP.
  /var/log/wtmp gets updated regularly when a login succeeds.
 
  What could be the problem here?
  Thanks in advance!
 
  Daniel

 the relevant entry would be ftp.*. or if ftp.info works for
 you, then you don't even need to change syslog.conf.

Argh... yes. You are absolutely right.
$ fgrep LOG_FTP /usr/include/*
/usr/include/syslog.h:#define   LOG_FTP (113) /* ftp daemon */
/usr/include/syslog.h:  { ftp,LOG_FTP },

I hope next time I'll be more mindful.

Thanks!

Daniel

-- 
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ftpd(8) is not logging

2008-11-28 Thread Stuart Henderson
On 2008-11-28, LIVAI Daniel [EMAIL PROTECTED] wrote:
 Hi!

 I'm using OpenBSD's ftpd(8), and specified the -l option on the command 
 line when starting it, which according to the man page, makes ftpd(8) 
 to log to syslog with facility LOG_FTP.
 Well, I've set up syslog.conf to capture that facility to a file:
 LOG_FTP.* /var/log/ftpd

 After a `pkill -HUP -x syslogd` unfortunately ftpd(8) won't log 
 anything. Even tried the -ll and -d options with ftpd(8), but no 
 luck. Grepping through ftpd's source, it seems that indeed it tries to 
 log with facility LOG_FTP.
 /var/log/wtmp gets updated regularly when a login succeeds.

 What could be the problem here?
 Thanks in advance!

 Daniel


the relevant entry would be ftp.*. or if ftp.info works for 
you, then you don't even need to change syslog.conf.