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 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.