AEWS jil/job API gives an error /bin/sh: /opt/CA/WorkloadAutomationAE/autouser.PRD/autosys.sh.backup: Permission denied
search cancel

AEWS jil/job API gives an error /bin/sh: /opt/CA/WorkloadAutomationAE/autouser.PRD/autosys.sh.backup: Permission denied

book

Article ID: 442891

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

When accessing AEWS/jil/job API, a permission denied error is seen, example:

/bin/sh: /opt/CA/WorkloadAutomationAE/autouser.PRD/autosys.sh.backup: Permission denied

Cause

  • AEWS/jil code tries to source any  $AUTOUSER/autosys.sh*  scripts before attempting to run the jil program via AutoSysCommandWrapper
  • If you have some file matching the file pattern autosys.sh.* in $AUTOUSER  but the autosys Unix user under which the AEWS tomcat process runs does not have RWX permissions on all of those files,  then you get permission denied error.

 

Resolution

Ensure any file matching autosys.sh* in $AUTOUSER has RX  permissions to the Unix user under which AEWS tomcat runs