[rsyslog-notify] Forum Thread: outchannel file permissions - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Wed Oct 22 17:43:37 CEST 2014
User: xdaxdb
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25039#p25039
Message:
----------
I need my newly created log files to have a permissions mode of 644 (or 640
even), but they are always made as 600
I have tried setting the umask for root in .bashrc and also tried these
settings in /etc/rsyslog.conf
[code:37jbsmpn]$FileOwner root
$FileCreateMode 0644
$DirCreateMode 0755[/code:37jbsmpn]
but sure enough, when the log rotates the new file is 600 and my
applications can't read it.
I tried to add a line to the rotate script to change the permissions, but
it seems like the new file isn't created until after the script finishes
because it has no effect.
More information about the rsyslog-notify
mailing list