Another way to do this would be to change your sudoers file to allow a user...

Another way to do this would be to change your sudoers file to allow a user to sudo without a password.

You could also use the 'su -c" command to run the script but you would need the password in the su invocation which is a pretty big security risk.

Sudoers file is your best bet to keep things secure.

Here's some info on that http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-roo...

Click Here!