Automic Workload Automation

 View Only
  • 1.  Running utilities as sudo

    Posted Sep 14, 2020 11:23 PM
    Hi,

    When we run any of the utilities through sudo, it fails. For example:


    fails with below message:


    But if the same command is run as root, it runs successfully. Any idea why with sudo it is not able to see the library and throws the above error?

    Regards
    Pothen


  • 2.  RE: Running utilities as sudo

    Posted Sep 15, 2020 01:47 AM
    Hi Pothen,

    can you please try this additional start parameter:

    sudo -E ./ucybdbar -B -S200

    Another method is to add required environment variables to the sudoers file via "sudo visudo"

    regards,
    Peter

    ------------------------------
    Capture Europe
    ------------------------------



  • 3.  RE: Running utilities as sudo

    Posted Sep 15, 2020 04:12 AM
    Hi Peter,

    With sudo -E the error is same as before.

    But if we use the UCxxxxx command within a shell script with env vars and call the script through sudo, the above error doesn't occur.

    So for now we have sorted this, by running the script as a normal user with required folder permissions.

    Thanks for the reply.

    Regards
    Pothen