[syslog-ng]File Permissions Not Being Set

Collin Lichtenberger syslog-ng@lists.balabit.hu
Thu, 13 Mar 2003 12:15:02 -0900


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