Call sudo without being prompted for a password

username ALL=NOPASSWD: /path/to/script
This will allow to call sudo on that particular script without being prompted for a password.
put the line username ALL=NOPASSWD: /path/to/script in /etc/sudoers

Comments

Popular Posts