[sudo-users] sudo and variable expantion: HowTo?
kb2wjw at gmail.com
Thu Jun 8 10:18:16 EDT 2006
Thursday, June 8, 2006, 5:56:35 PM, you wrote:
> Sudo does a textual match; it's pretty hard to get something
> to match backquotes without it actually being eval'd
> Best off writing a wrapper script, say, hupntp, with
> /bin/kill -HUP `cat /var/run/ntpd.pid`
> then in sudoers:
> mortal ALL = /usr/local/bin/hupntp
Thank you very much!
It works now, I knew it must be trivial. :)
Tony mailto:kb2wjw at gmail.com
More information about the sudo-users