Sudo on a binary

Hi,
On AIX 7

How give a user the privilege to run a single binary or a Shell script with sudo?

Once done, what would be the syntax to run the binary please?

Thanks

Hi,

add a line like this to /etc/sudoers

username        hostname=/command/to/run

i.e.

user1        host1=/tmp/runme.ksh

script can be then executed by that user running

sudo /tmp/runme.ksh