[sudo-users] sudo and variable expantion: HowTo?

генерал Пурпоз kb2wjw at gmail.com
Thu Jun 8 10:18:16 EDT 2006

Hello Matthew,

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
> prematurely.

> Best off writing a wrapper script, say, hupntp, with
> contents
>         #!/bin/sh
>         /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. :)

Best regards,
 Tony                mailto:kb2wjw at gmail.com

More information about the sudo-users mailing list