PTA MONIT_STATUS not displaying process status correctly
Symptom
When restarting the PTA services using the command: systemctl restart appmgr, it was observed that the process status for the PTA services monitored by monit daemon could not be displayed properly.
Environment
12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) PTA
PTA monit
Cause
The monit daemon process (monit user) is unable to access the following process pid files to determine the status of the PTA services.
Running the command below returns 600 instead of 644
-------------------------
ls -al /opt/tomcat/statistics/ptastatisticsd.pid
ls -al /opt/tomcat/listener/ptalistenerd.pid
ls -al /opt/tomcat/CasosServices/ptacasosservicesd.pid
ls -al /opt/backgroundScheduler/ptabschedulerd.pid
ls -al /opt/dcaserver/ptadcaserverd.pid
-------------------------
Resolution
PTA requires the following umask values for the application users:
User: root (UID: 0, GID: 0) - UMASK: 0022
User: ptauser (UID: 1001, GID: 1001) - UMASK: 0002
User: agbroker (UID: 1002, GID: 1002) - UMASK: 0002
User: monit (UID: 1003, GID: 1003) - UMASK: 0002
User: tomcat (UID: 1004, GID: 1004) - UMASK: 0002
User: activemq (UID: 1005, GID: 1005) - UMASK: 0002
User: dcagent (UID: 1006, GID: 1006) - UMASK: 0002
User: casosServices (UID: 1007, GID: 1007) - UMASK: 0002
User: ptaservices (UID: 1008, GID: 1008) - UMASK: 0002
User: statistics (UID: 1009, GID: 1009) - UMASK: 0002
User: ptamonitor (UID: 1010, GID: 1010) - UMASK: This account is currently not available.