nohup.stdout file presents a permission denied message.
search cancel

nohup.stdout file presents a permission denied message.

book

Article ID: 382251

calendar_today

Updated On:

Products

Autosys Workload Automation Workload Automation Agent ESP dSeries Workload Automation - System Agent (dSeries) ESP dSeries Workload Automation

Issue/Introduction

The nohup.stdout file is filling up with the following message regardless of whether the running job is successful or fails:

[/opt/CA/WorkloadAutomationAE/SystemAgent/Agent/spool/MY_SCH/MAIN/WAAE_WF0.1/#######.#######_1.###############.joblog] can not be opened: [Permission denied]. The message is: <mm/dd/yyyy 12:45:14.602-0400 CAWA_I_20009 Successfully changed file owner and group for file

 

 

 

Environment

OS: Red Hat Enterprise Linux (RHEL) 8, 9 and newer 

Component: Workload Automation Agent

Cause

This is a behavior change on hardened Red Hat Enterprise Linux systems.

 

Resolution

The behavior can be adjusted using a kernel parameter;

  1. Add the below parameter in /etc/sysctl.conf
    • fs.protected_regular=0
  2. Reload the kernel parameters and the problem should be fixed .
    • sysctl -p /etc/sysctl.conf

Additional Information

Permission Denied When Retrieving Spool File on Red Hat Enterprise Linux 9

For more information, see Kernel documentation.

Additionally, note that fixes for this are available in later versions of the agent, specifically 12.1,  12.1 SP1 and 24.0 Agents.