Saturday, June 11, 2011

execute sudo commands in a bash script without password

visudo -f /etc/sudoers


user   ALL=(ALL) NOPASSWD: ALL
user   ALL=(ALL) NOPASSWD: /home/user/script

No comments:

Post a Comment