When attempting to view the job Script in the Control-M/Enterprise Manager GUI under Monitoring and the Control-M/Agent running he job uses sudo mode, the following error occurs:  CTM5507: Failed to get the original script file

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Agent for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Agent for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M/Agent for UNIX and Microsoft Windows 9.0.00.100 or higher



    PROBLEM:

    When attempting to view the job Script in the Control-M/Enterprise Manager GUI under Monitoring and the Control-M/Agent running he job uses sudo mode, the following error occurs:  CTM5507: Failed to get the original script file

    The job can run successfully and all the other information such as Log, Output, etc also work fine.
    Only viewing the job Script shows the error.


    CAUSE:

    Incorrect permissions on the [Agent Home]/ctm/non-root


    SOLUTION:

    The <Agent Home>/ctm/non-root directory needs to have the permission as listed below:

    drwxrwsrwt  2 ctmagent controlm   4096 May 21 14:35 non-root

    Change the directory permissions if it is not exactly as above:
    1. Logon to the Agent host as the root user.
    2. Change directory to <Agent Home>/ctm
    3. chmod 2777 non-root
    4. chmod +t non-root
    5. Stop and restart the Control-M/Agent


    Article Number:

    000153875


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles