When running a job on linux OS (OS agent or SAP), the job is ending with ENDED_NOT_OK - aborted
Return code is 126
Error: /automic/Automation.Platform/Agents/AGENTNAME/temp/JXXXXXXX.TXT: Permission denied
Release : 12.3
Component : AUTOMATION ENGINE
The automic user did not have write access to the agent's /temp directory
Open the agent's temp directory to the user who owns the agent, these should be what is shown in the documentation:
https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Installation_Manual/InstallAgents/InstallAgentUNIX.htm?Highlight=unix%20temp
Privileges for the out (UC_EX_PATH_JOBREPORT) and temp (UC_EX_PATH_TEMP) directory (see List of Agent Variables):
Owner: read, write and execute permissions
Group: read, write and execute permissions
World: read, write and execute permissions