Hey all,
I wrote a script that creates a generic rsyslog configuration files in 
rsyslog.d for all my machines. I have one problem with my log files 
permissions. This is the permissions config file that my script generates 
/etc/rsyslog.d/zz-002-permissions.log :
$FileGroup jboss-as-logs$umask 0000$FileCreateMode 0640

The problem is that these files are included in rsyslog.conf before creating 
the systems log files (like /var/log/messages, /var/log/secure ...) and i 
really don't want to change this file (---> Linux best practices). 
I tried to reset all configuration variables to their default value using 
&ResetConfigVariables but that doesn't work. It actually resets FileCreateMode 
to 0644 for example.
Any ideas ??
I want to be able to delete /var/log/messages for example and then restart 
rsyslog and have root as the owner and the group of this file with its native 
permissions (0600). Is this possible with rsyslog or do i need to change 
permissions manually ??
Thanks in advance 
El Fatayri Anwar


                                          
_______________________________________________
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.

Reply via email to