How to Change Default Permission of Operating System Log files /var/log/messages
Last updated on AUGUST 25, 2015
Applies to:Linux OS - Version Enterprise Linux 4.0 and later
Miracle Linux x86-64
By default, /var/log/messages* are created with read-write permissions for 'root' user only. There might be a requirement to make the log files world readable for eg to allow an application to read and process the data in it. Changing the permissions on such files using '
chmod' might be a temporary solution as they will be recreated with the original permission during the next logrotate cron job. This document will help understand how to set custom permissions (eg 644) on /var/log/messages permanently.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms