IBM Support

Using 'sudo' impersonation on AIX results in "sudo: illegal option '-n'"

Troubleshooting


Problem

Attempts to use 'sudo' impersonation with the Agent on AIX 6.1 where the sudo version 1.6.9p15 installed result in error: "sudo: illegal option '-n'", using IBM uDeploy.

Symptom

Steps to reproduce:

  1. Check the Use Impersonation check box in the definition of a Process Step, to run the step as a different user.
  2. Check the sudo check box in the definition of a Process Step.
    Note: Search the help for sudo for more information on how this differs from using su, which is the default.
  3. Attempt to request the process that contains the above step.

    The following error appears and the deployment fails.

    Error:
    sudo: illegal option `-n'
    usage: sudo -h | -K | -k | -L | -l | -V | -v
    usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
     {-i | -s | <command>}
    usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...

Cause

uDeploy hardcoded the option -n in the sudo command. This option is not supported with sudo version 1.6.9p15.

Environment

The uDeploy Agent must be installed on AIX.

Diagnosing The Problem

Identify the above error message in the process execution output log.

Resolving The Problem

Upgrade sudo software to vesion 1.7.10 or above.

[{"Product":{"code":"SS4JV8","label":"IBM uDeploy"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations - IBM","Platform":[{"code":"PF002","label":"AIX"}],"Version":"4.8;4.8.1;4.8.2;4.8.3;4.8.4;4.8.5;5.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21687111