Linux jobs get permission denied when accessing home directory
search cancel

Linux jobs get permission denied when accessing home directory

book

Article ID: 251391

calendar_today

Updated On:

Products

Workload Automation Agent CA Workload Automation DE - System Agent (dSeries) CA Workload Automation DE - Business Agents (dSeries) CA Workload Automation AE - System Agent (AutoSys)

Issue/Introduction

When running Linux job from WA Agent, the job fails with these error messages.

                                
touch: cannot touch ???/home/user1/somefile???: Permission denied
ls: cannot open directory /home: Permission denied

Environment

Release : 12

Component : WA Agent

OS: Linux

Cause

When WA agent is started from systemctl or at reboot, it couldn't access /home and /root.

The systemctl startup script has these settings:

ProtectSystem=full
ProtectHome=yes

 

 

 

Resolution

Remove or comment out theses parameters from init / start script that starts the WA Agent.

ProtectSystem=full
ProtectHome=yes