Established method to enable suid scripts?
kraduk at gmail.com
Fri May 13 20:16:49 UTC 2011
On Friday, 13 May 2011, Pan Tsu <inyaoo at gmail.com> wrote:
> Chris Telting <christopher-ml at telting.org> writes:
>> On 05/13/2011 01:32, krad wrote:
>>> what i cant understand is the complete aversion to sudo. Could you
>>> shed any light on why you are trying to avoid a tried and tested
>> That I freely admit is for no rational reason. It's just annoying. But
> ...a shebang can be written with sudo in mind, e.g.
> #! /usr/bin/env -S sudo sh
> $ ./foo.sh
> uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)
> $ ls -l
> -rwxr-xr-x 1 luser luser 31 May 13 21:36 foo.sh
>> let me ask you.. is "sudo ping" acceptable? Please explain the logical
>> reason why not. It would be the preferred method if suid didn't exist
>> and sudo was part of the base system.
I'm still bemused to why unless it just an academic exercise
More information about the freebsd-questions