[sudo-users] sudo and variable expantion: HowTo?
kb2wjw at gmail.com
Thu Jun 8 03:30:45 EDT 2006
>> mortal ALL = /bin/kill -HUP $(cat /var/run/ntpd.pid)
> At a guess the invoked shell does not like the $( .. )
> mortal ALL = /bin/kill -HUP `cat /var/run/ntpd.pid`
No, this way it does not work either.
Both ways I see the correct PID shown in the refusal sudo message
stating that "mortal is not allowed to ... as root on this host".
I start fearing it might be my (QNX4's actually) ksh's quirk or
something beyond sudo...
Tony mailto:kb2wjw at gmail.com
More information about the sudo-users