How to Change Default Permission of Operating System Log files /var/log/messages
(Doc ID 2045112.1)
Last updated on MARCH 13, 2023
Applies to:
Linux OS - Version Enterprise Linux 4.0 and laterOracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Miracle Linux x86-64
Goal
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.
Solution
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
Goal |
Solution |
References |