Hi
Would like to execute a script using different login without prompting for password. We've already given sudo privilege to the <id_name> and can use #sudo su - <id_name> in the prompt but when we pass parameter of script name, it prompts for error.

"Sorry, user <id_name> is not allowed to execute "/home/iti/infsec/inf.sh" as <id_name> on owl.

We've execute following:
#/usr/local/bin/sudo -u <id_name> /home/iti/infsec/inf.sh

Any permission need to check still??
Appreciate prompt advise

Thanks a lot