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
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@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Vinay Kalkoti Sent: 12 March 2009 15:27 To: syslog-ng@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
On Thu, 2009-03-12 at 17:02 +0000, Fegan, Joe wrote:
What user does syslog-ng run as? If you log in as that user and type "cat /tmp/log" does that work?
Also, be sure to check your AppArmor policy. -- Bazsi
participants (3)
-
Balazs Scheidler
-
Fegan, Joe
-
Vinay Kalkoti