OEM 13C JOB os command does not get privileges of login credentials
Hi.
I am creating an os command job in OEM 13C with a single command on a Host that is
$HOME/local/bin/runjob.sh
I set the job to have credentials for a certain user but the job fails with the error:
/bin/sh: /home/oracle_agent/local/bin/runjob.sh: Permission denied
Here the $HOME is pointing to /home/oracle_agent which is the Agent's home but not the home of my user that I specified in the Credentials for the job and should be /home/myuser/local/bin/runjob.sh. It seems that the job is not using the credentials that I specify as I see that the $HOME is wrong. Has anyone come across this and know how do you get the correct login?