-   Linux - Security (
-   -   Changing file permissions of generated /var/log files (

jeriryan 04-30-2012 09:48 AM

Changing file permissions of generated /var/log files
If I wanted to change the default permissions with which /var/log files like rpmpkgs or messages are generated, how would I go about it? Like if /var/log/messages files were being generated with 644, how could I make sure that any new messages files were generated with...640 for example?

em31amit 04-30-2012 10:18 AM

you need to change the config into /etc/logrotate.conf and other log related file like messages, others resided into /etc/logrotate.d/
so you need to modify every log file config accordingly to your need.

Amit m.

Reuti 06-13-2012 09:25 AM

At logrotate time itís already too late if I get the question in the correct way. There are options (at least in syslog-ng [setting perm(perm) in syslog-ng.conf], but I would assume in others like rsyslog too) to set the default permissions of the created files.

All times are GMT -5. The time now is 10:27 AM.