On Tue, 6 Nov 2018, sophie.loewenthal--- via rsyslog wrote:
I have these global settings and this template:
# misc config
global(
workDirectory="/app/rsyslog" )
$CreateDirs on
$fileOwner root
$fileGroup admin
$dirGroup admin
$FileCreateMode 0640
other than the workdirectory, these settings have no effect on anything define
with an action() statement. they only affect legacy outputs
action(type="omfile" dirCreateMode="0750" fileCreateMode="0640"
fileGroup="admin"
File="/soft/rsyslog/messages.all")
But the file and the directory is always created thus. The above settings seem
to have no effect
drwxr-xr-x 3 root root 8192 Nov 6 10:52 .
-rw------- 1 root admin 169 Nov 6 10:52 messages.all
did the file already exist? or was it created by rsyslog?
do you have privdrop set in your config? (that can prevent rsyslog from setting
permissions on files)
David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.