[syslog-ng] syslog-ng not opening file specified in source

Fegan, Joe Joe.Fegan at hp.com
Thu Mar 12 18:02:38 CET 2009


What user does syslog-ng run as? If you log in as that user and type "cat /tmp/log" does that work? 

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Vinay Kalkoti
Sent: 12 March 2009 15:27
To: syslog-ng at lists.balabit.hu
Subject: [syslog-ng] syslog-ng not opening file specified in source

Hi,

I am using syslog-ng 2.0.10 on suse 10 sp2.

my syslog-ng.conf file looks like this -

source tcp_src { file("/tmp/log"); };
destination tcp_dest { tcp("<ip>" port(514)); };
log { source(tcp_src); destination(tcp_dest); };

i have given rw permissions to my file /tmp/log.

I did strace syslog-ng -f syslog-ng.conf.  Here is where it is failing -

open("/tmp/log", O_RDONLY|O_NONBLOCK|O_NOCTTY) = -1 EACCES (Permission denied)

Any help is appreciated.

Thanks,
Vinay
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html



More information about the syslog-ng mailing list