So what I want to do is something like this W/O a password:
I have the following as the last line of my sudoers file on remotemachine:Code:ssh -t user@remotemachine sudo /usr/bin/killall synergyc
Problem is that sudo still prompts me for a password. :-/Code:user ALL=(ALL) NOPASSWD:/usr/bin/killall synergyc,/opt/scripts/restartSynergy.sh
Note: if I ssh over there first and then execute it, it's not a problem.
What am I screwing up?
Bookmarks