[sudo-users] getting a syntax error when I run a scritp via sudo

Todd C. Miller Todd.Miller at courtesan.com
Fri Jun 5 08:18:13 MDT 2015

You need to put the interpreter as the first line of the script or
it will be run via /bin/sh.  It sounds like you really want it to
run via ksh.  If so, adding:


to the top of the script should fix it.

 - todd

More information about the sudo-users mailing list