Established method to enable suid scripts?

Alejandro Imass ait at
Sat May 14 20:02:42 UTC 2011

On Sat, May 14, 2011 at 3:09 PM, Randal L. Schwartz
<merlyn at> wrote:
>>>>>> "Pan" == Pan Tsu <inyaoo at> 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.

More information about the freebsd-questions mailing list