My Oracle Support Banner

Oracle Linux: How to Change Default Ownership of Operating System Log files /var/log/messages (Doc ID 2973977.1)

Last updated on SEPTEMBER 22, 2023

Applies to:

Linux OS - Version Oracle Linux 6.0 to Oracle Linux 7.9 with Unbreakable Enterprise Kernel [5.4.17] [Release OL6 to OL7U9]
Linux x86-64


By default, /var/log/messages* are created with root ownership. 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 ownership on such files using chown might be a temporary solution as they will be re-created with the original ownership during the next logrotate cron job. This document will help understand how to set custom ownership 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.