How to Change Default Permission of Operating System Log files /var/log/messages
(Doc ID 2045112.1)
Last updated on APRIL 24, 2020
Applies to:Linux OS - Version Enterprise Linux 4.0 and later
Oracle Cloud Infrastructure - Version N/A 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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document