HPUX Unix agent is running by uc4admin ID while Linux agent is running by root.

Document ID : KB000106849
Last Modified Date : 13/08/2018
Show Technical Document Details
Question:
- The HPUX Unix agent is running by uc4admin ID
Agent log
20180628/022350.397 - start real user name :  'uc4admin'
20180628/022350.397 -                 . userID :  '29147'
20180628/022350.397 -                 . groupID :  '1550'
20180628/022350.397 -                 . home directory :  '/opt/apps/uc4'
20180628/022350.397 -       effective user name :  'root'
20180628/022350.397 -                 . userID :  '0'
20180628/022350.397 -                 . groupID :  '3'
20180628/022350.397 -                 . home directory :  '/root'
20180628/022350.397 - running real user name :  'uc4admin'
20180628/022350.397 -                 . userID :  '29147'
20180628/022350.397 -                 . groupID :  '1550'
20180628/022350.397 -                 . home directory :  '/opt/apps/uc4'
20180628/022350.397 -         effective user name :  'root'
20180628/022350.397 -                 . userID :  '0'
20180628/022350.397 -                 . groupID :  '3'
20180628/022350.397 -                 . home directory :  '/root'
20180628/022350.397 - Agent efUserName     :  'root'
20180628/022350.397 -       pcx_home_dir   :  '/root'
20180628/022350.397 -       pcx_runUserName :  'uc4admin'
20180628/022350.397 - current working directory :  '/opt/apps/uc4/Agent_UNIX'
PS Command result
$  ps -ef|grep uc4
uc4admin 19439 19422  0 02:23:19 ?         0:00 /opt/apps/uc4/Agent_UNIX/ucxjhi6 DALHDC08.ini
uc4admin 19422     1  0 02:23:12 ?         0:00 /opt/apps/uc4/ServiceManager/ucybsmgr -i/opt/apps/uc4/ServiceManager/DALHDC08.ini DEVJ3


- Linux agent is running by root ID.
Agent log 
20180627/191105.726 - 20180620/014758.641 - start real user name :  'uc4admin'
20180627/191105.726 - 20180620/014758.641 -                 . userID :  '29147'
20180627/191105.726 - 20180620/014758.641 -                 . groupID :  '1550'
20180627/191105.726 - 20180620/014758.641 -                 . home directory :  '/opt/uc4'
20180627/191105.726 - 20180620/014758.641 -       effective user name :  'root'
20180627/191105.726 - 20180620/014758.641 -                 . userID :  '0'
20180627/191105.726 - 20180620/014758.641 -                 . groupID :  '0'
20180627/191105.726 - 20180620/014758.641 -                 . home directory :  '/root'
20180627/191105.726 - 20180620/014758.641 - running real user name :  'uc4admin'
20180627/191105.726 - 20180620/014758.641 -                 . userID :  '29147'
20180627/191105.726 - 20180620/014758.641 -                 . groupID :  '1550'
20180627/191105.726 - 20180620/014758.641 -                 . home directory :  '/opt/uc4'
20180627/191105.726 - 20180620/014758.641 -         effective user name :  'root'
20180627/191105.726 - 20180620/014758.641 -                 . userID :  '0'
20180627/191105.726 - 20180620/014758.641 -                 . groupID :  '0'
20180627/191105.726 - 20180620/014758.641 -                 . home directory :  '/root'
20180627/191105.726 - 20180620/014758.641 - Agent efUserName     :  'root'
20180627/191105.726 - 20180620/014758.641 -       pcx_home_dir   :  '/root'
20180627/191105.726 - 20180620/014758.641 -       pcx_runUserName :  'uc4admin'
20180627/191105.726 - 20180620/014758.641 - current working directory :  '/opt/apps/uc4/Agent_UNIX'
PS command result
$ ps -ef|grep uc4
uc4admin 38704     1  0 Jun20 ?        00:00:03 /opt/apps/uc4/ServiceManager/ucybsmgr -i/opt/apps/uc4/ServiceManager/DALLAD63.ini DEVJ3
root     39006 38704  0 Jun20 ?        00:00:05 /opt/apps/uc4/Agent_UNIX/ucxjlx6 DALLAD63.ini

Even though we set up the same in both server, why are they not the same? 
Answer:
This is not an issue of our software, it's the customers environment.
For more detail, please read the man-page for the operating system command 'ps' on HP/UX and on Linux, considering the 'UNIX95' parameter, and pay attention to real user ID and effective user ID.