How to configure permissions of log files created by rsyslog
Issue
- How can the default permissions of a log file (e.g. /var/log/messages) be changed to make it world-writeable?
- Changing permissions of system log files via
createdirectives in /etc/logrotate.d/syslog doesn't work with rsyslog v5 (e.g. in RHEL6). No matter what is configured vialogrotate, log files always have 600 permissions.
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- rsyslog
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
