Log files have incorrect permissions after being rotated

Solution Verified - Updated -

Issue

  • Log files in /var/log/ have incorrect permissions after being rotated with logrotate
  • Permissions of new log files not inheriting custom permissions of rotated logs
  • /var/log/messages is set with 644 permissions, but after logrotate, /var/log/messages returns to 600 permissions

Environment

  • Red Hat Enterprise Linux 6

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