How to configure permissions of log files created by rsyslog

Solution Verified - Updated -


  • How can the default permissions of a log file (e.g. /var/log/messages) be changed to make it world-readable or 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.


  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • rsyslog

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content