My Oracle Support Banner

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 later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.