I am trying to let user2 run a particular script - script.sh that belongs to user1 and allow him(user2) to run as the script's owner, user1. So I made an entry in the /etc/sudoers file, however visudo shows an error, but doesnt specify. Here is what I have-
#User priveilege specification
root ALL=(ALL) ALL
#The following line gives an error
user2 ALL=(user1) /home/user1/bin/script.sh
OS: Ubuntu 10.4