Need to change the permissions of the rotating server.log file.
search cancel

Need to change the permissions of the rotating server.log file.

book

Article ID: 267946

calendar_today

Updated On:

Products

CA Identity Manager

Issue/Introduction

We have a use case where we are required to change the permission on the server.log file:

/opt/wildfly-15.0.1.Final/standalone/log/server.log

idamadmin@xxxxxxx log]$ ls -l server.log
-rw------- 1 idamadmin idamadmin 508168 Jun  7 08:45 server.log

Can you provide me with the config file or procedure on how to add read permission for all users?

 

Environment

Release : 14.4

Resolution

The changing of these permissions would be handled on the Linux side. Please work with your Linux Admins.  They could use a crontab to set permissions when the files are created. 

External resources on setting permissions on Linux:

https://man7.org/linux/man-pages/man5/crontab.5.html

https://phoenixnap.com/kb/chmod-recursive

https://www.computerhope.com/unix/uchmod.htm