Could anyone be able to give me an idea of what is going on with my system. I am running Redhat 8.0 with syslog-ng 1.4.17. I use it to watch network devices. The devices log to syslog-ng running on my RH8 box. Syslog-ng runs and creates log files like it should except the permission on the files are always the default 600. Even though my config file looks like this: /etc/syslog-ng/syslog-ng.conf - ... destination d_snmptrapd { file("/var/log/snmptrapd" perm(0644) ); }; destination d_radiusd { file("/var/log/radiusd"); }; destination d_nethost { file("/var/log/net/$HOST/$YEAR$MONTH$DAY" owner(apache) group(apache) perm(0644) dir_perm(0755)create_dirs(yes) ); }; destination d_nethost_clump { file("/var/log/net/netdevice" owner(root) group(root) perm(0644) dir_perm(0755) create_dirs(yes) ); # Special ... log { source(s_src); filter(f_snmptrapd); destination(d_snmptrapd); }; log { source(s_src); filter(f_radiusd); destination(d_radiusd); }; log { source(s_src); filter(f_all); destination(d_all); }; # # Network Logging # log { source(s_net); destination(d_nethost); }; log { source(s_net); destination(d_nethost_clump); };}; - Even though I have the permissions set as something else it still creates files with 600 permission instead of 644 like it's instructed. (This is for any file it creates.) Though syslog-ng will create the file in the correct directories. I am thoroughly confused and would appreciate any help. Thank You. Thanks, COLLIN
Collin Lichtenberger on Thu, Mar 13, 2003 at 12:15:02PM -0900: Collin,
Even though I have the permissions set as something else it still creates files with 600 permission instead of 644 like it's instructed. (This is for any file it creates.) Though syslog-ng will create the file in the correct directories. I am thoroughly confused and would appreciate any help. Thank You.
unfortunately, syslog-ng doesn't honor explicit mode specifications in a way, that would override the umask in your startup-script or inherited from the parent. You can set useful modes on logfiles only if you are willing to loosen your restrictive umask to something like 022. Regards, -- ____ ____ / _/| - > Gregor Binder <gb@(rootnexus.net|sysfive.com)> | / || _\ \ \__ Id: 0xE2F31C4B Fp: 8B8A 5CE3 B79B FBF1 5518 8871 0EFB AFA3 E2F3 1C4B
participants (2)
-
Collin Lichtenberger
-
Gregor Binder