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?
|
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. Thanks, em31amit Amit m. |
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 08:58 AM. |