Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • What does visudo -c return (checks sudoers for errors). Also, can you confirm the full version of AIX (oslevel -s) and the version of sudo installed? Commented Aug 1, 2014 at 12:13
  • 1
    Also, does it work if you list the script name explicitly in sudo rather than the wildcard (and is the filename a symbolic link?). Commented Aug 1, 2014 at 12:18
  • Thanks @EightBitTone. So I found solution for this sudoers configuration issue: when -i switch is in use then real command is beans ALL = (root,apache) NOPASSWD: /usr/bin/ksh -c /opt/renovations/var/script-*.sh and beans ALL = (root,apache) NOPASSWD: /usr/bin/bash -c /opt/renovations/var/script-*.sh But now I get the new error, for example: ksh: /opt/renovations/var/script-test.sh: cannot execute Commented Aug 1, 2014 at 14:02
  • Analysing the /var/log/sudolog log file was very helpful to debug above issue (on AIX). Commented Aug 1, 2014 at 14:42