[CentOS] read permission on rotated logs

Thu Mar 14 10:51:56 UTC 2019
Mogens Kjaer <mk at lemo.dk>

On 3/13/19 11:13 PM, Alice Wonder wrote:
> When logs (e.g. /var/log/maillog) are rotated (e.g. to 
> /var/log/maillog-YYYYMDD) is there a way via systemd or whatever to 
> assign read permission to a specific group?

Add the following line to /etc/logrotate.d/syslog, e.g. after sharedscripts:

create 640 root somegroup

-- 
Mogens Kjaer, mk at lemo.dk
http://www.lemo.dk