sudo in non interactive mode

Hi ,

I login to unix using my id and then do a sudo to execute any programs i want.

sudo su - <id>
password : xxxxxxx

Is there a way to make it non interactive so that i can use it in shell script.

Linux Tips - Passwordless sudo setup