How to configure permissions of log files created by rsyslog

Solution Verified - Updated -

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 create directives in /etc/logrotate.d/syslog doesn't work with rsyslog v5 (e.g. in RHEL6). No matter what is configured via logrotate, 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.