[syslog-ng]syslog-ng & Directory Creation
Philip Webster
syslog-ng@lists.balabit.hu
Thu, 20 May 2004 12:18:09 +1000
Hello,
I've just changed the owner for new files created by syslog-ng to be someone
other than root, but new directories are still owned by root. The relevant
configuration is:
destination dst_hosts {
file("/path/to/logs/$HOST/$YEAR-$MONTH-$DAY"
template("$FULLDATE $FULLHOST $FACILITY.$PRIORITY $MSG\n")
owner(loguser) group(loguser) perm(0600) dir_perm(0700)
create_dirs(yes));
I've tried placing the create_dirs() directive before the owner() directive,
but with no change in the result. The owner of the top-level directory
(/path/to/logs) is also loguser. All files are created with the correct owner
and group. syslog-ng version is 1.6.3.
Is there anything I am doing wrong?
Thanks
Phil