[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: forcing a shell script to run a specific user?
Charles Menzes said:
[...]
> then i am hoping for example, to be able to restart, say
> dns, by issueing:
>
> ssh -l cmenzes ns2.lunarmedia.net "sudo /usr/bin/ndc reload"
In the case of ndc, you probably only really need whatever user to
have write access to the ndc socket, usually /var/run/ndc. You
*should* be able to put something like this in named.conf to let users
in group 53 (as an example) control named:
controls {
unix "/var/run/ndc" perm 0660 owner 53 group 53;
};
YMMV.
Steve
--
steve@silug.org | Linux Users of Central Illinois
(618)398-7320 | Meetings the 4th Tuesday of every month
Steven Pritchard | http://www.luci.org/ for more info
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.