On Sat, May 14, 2011 at 3:09 PM, Randal L. Schwartz
<mer...@stonehenge.com> wrote:
>>>>>> "Pan" == Pan Tsu <iny...@gmail.com> writes:

[...]

> (Untested) why not just "#!/usr/local/bin/sudo" ?  It'll be given the
> filename as an argument.

Precisely. I think this thread should be forked to something like
"suid versus sudo for scripts"?

I second the sudo idea instead of suiding the interpreter, and it's a
better solution to the one I have used in the past like C-wrapping and
suiding specific operations.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to