Error: Cannot set the effective uid to 0 due to incorrect ownership or nosuid mount on assrvc
search cancel

Error: Cannot set the effective uid to 0 due to incorrect ownership or nosuid mount on assrvc

book

Article ID: 450055

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

When attempting to source environment variables or start services, the following error is received: ERROR - Cannot set the effective uid to 0. Please make sure "$AUTOSYS_CSUTILS/bin/assrvc" has Set-Uid permissions

Environment

  • Workload Automation AE (AutoSys)
  • Linux Operating Systems

Cause

The assrvc utility requires root privileges to function correctly. This error occurs if either of the following conditions is true:

  1. Incorrect Ownership: The assrvc file is owned by a non-root user (e.g., the autosys user). On Linux, the Set-UID bit only grants root access if the file is owned by root.
  2. Filesystem Restrictions: The filesystem where $AUTOSYS_CSUTILS/bin/ resides (often /opt) is mounted with the nosuid option, which prevents the execution of Set-UID binaries.

Resolution

Step 1: Verify and Fix File Ownership

  1. Navigate to the utility directory:
    bash
    cd $AUTOSYS_CSUTILS/bin/
  2. Check the ownership and permissions:
    bash
    ls -ltrh assrvc
  3. If the file is not owned by root, change the owner and re-assert permissions:
    bash
    Note: ust be run as root
    
    chown root:root assrvc
    chmod 4755 assrvc

Step 2: Verify and Fix Filesystem Mount Options

  1. Check the live mount options for the filesystem:
    bash
    findmnt -no OPTIONS /opt
    (Replace /opt with the appropriate mount point if different)
  2. If the output contains nosuid, the filesystem must be remounted without this restriction. Consult your System Administrator to update /etc/fstab and remount the volume:
    bash
    mount -o remount,suid /opt

Step 3: Validation

Re-run the original operation. The command should now execute without the effective UID error

Additional Information

To speak with a customer representative or a Support Engineer see Contact Support. Scroll to the bottom of the page and click on the respective region.