ACC Controller controller generating new files with different mask

Document ID : KB000117794
Last Modified Date : 18/10/2018
Show Technical Document Details
Issue:
When we change some properties related to the IntroscopeAgent.profile file the ACC Controller applies the changes however the new file has now a different mask:

-rw-.--.-- root root

Since this file is owned by root and the application server uses a different user then the agent configuration is not accessible for the application server.
Is there a way we can define or overwrite the mask?




 
Environment:
APM Command Center
Cause:
The ACC Controller applies to the files the same mask used for the user who installed the controller.
Resolution:
One possible workaround is to add line "umask 022" into apmccctrl.sh script (e.g. insert it as second line). This will ensure all files and directories created by controller are readable by other users.
Disadvantage is that other local users in the Operating System will have access to files created by Command Center controller (including log files).

Other possibility is to run command center controller under same user as monitored application which is described here:
https://docops.ca.com/ca-apm/10-7/en/installing/apm-installation/install-ca-apm-command-center/install-ca-apm-command-center-agent-controller-on-unix-or-linux
But this only works for single user. If there are two or more users running the monitored applications it will not work.