Hey Rainer, I want my configuration files to be generic. Creating all Linux standard log files manually is not generic (i might have problems when updating the system for example). Example: 1) Install linux on a machine (CentOS 6.3 for ex.) 2) delete /var/log/messages3) restart rsyslogd Result : /var/log/messages is created with is natlive permissions, owner, group ... Isn't possible to go back to this state after creating specific app log files with specific permissions, groups .. ??? El Fatayri Anwar
> Date: Tue, 8 Apr 2014 12:31:03 +0200 > From: [email protected] > To: [email protected] > Subject: Re: [rsyslog] rsyslog 5.8.10 Log Files permissions > > On Tue, Apr 8, 2014 at 11:18 AM, Anwar El fatayri < > [email protected]> wrote: > > > 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. > > > > well, that's rsyslog default for this setting. I guess the distro has > changed that via a directive. > > > > 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 ?? > > > > so why not either do the other changes after the standard files OR reset > the manually to the values that you want? It looks like you know what they > are. > > Rainer > > 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. > > > _______________________________________________ > 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. _______________________________________________ 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.

