C

On Friday, 13 May 2011, Pan Tsu <iny...@gmail.com> wrote:
> Chris Telting <christopher...@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
>>> method.
>>
>> 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
>   id
>
>   $ ./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
_______________________________________________
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