Missing setuid permissions
search cancel

Missing setuid permissions

book

Article ID: 240449

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

The following error is returned while running commands to control the autosys services (unifstat, unisrvcntr, unicntrl, unishutdown, unifstat, unishutdown, unicycle, unistart ..etc)

$ unifstat

ERROR - Cannot set the effective uid to 0
Please make sure "AUTOSYS_CSUTILS/bin/assrvc" has Set-Uid permissions.

Environment

Release : 12.0

Cause

The error is due to missing required setuid permissions on the file specified.

Another possible cause is that the file system where casrvc is located is mounted with the nosuid option.

Resolution

From the error, AUTOSYS_CSUTILS is the place "csutils" are installed. The variable is sourced in most of the installations by default.

In case it is not found, check the path "$AUTOSYS/csutils". The file "assrvc" is under $AUTOSYS_CSUTILS/bin/. The file must have special permission (set-uid) with the ownership under root.

-rwsr-xr-x. 1 root root 123112 Nov 29  2020 /opt/CA/WorkloadAutomationAE/autosys/csutils/bin/assrvc

If the issue persists when the setuid bit is set for assrvc, check if the file system in which assrvc resides is mounted with nosuid option. 

If yes, remove the nosuid option of the file system in /etc/fstab and remount the file system.