Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2011 21:16:47 +0100
From:      krad <kraduk@gmail.com>
To:        Pan Tsu <inyaoo@gmail.com>
Cc:        Chris Telting <christopher-ml@telting.org>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Established method to enable suid scripts?
Message-ID:  <BANLkTim69aoAAr39UKWGMQTbzZz7xmbPEA@mail.gmail.com>
In-Reply-To: <86k4duh4q9.fsf@gmail.com>
References:  <4DC9DE2C.6070605@telting.org> <201105121657.57647.j.mckeown@ru.ac.za> <4DCBFC39.8060900@telting.org> <201105130932.32144.j.mckeown@ru.ac.za> <BANLkTin4rkQouSiOy4M1uu%2BqXSWJzF_STA@mail.gmail.com> <4DCD02EF.7050808@telting.org> <86k4duh4q9.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
C

On Friday, 13 May 2011, Pan Tsu <inyaoo@gmail.com> wrote:
> Chris Telting <christopher-ml@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.
>
>  =A0#! /usr/bin/env -S sudo sh
>  =A0id
>
>  =A0$ ./foo.sh
>  =A0uid=3D0(root) gid=3D0(wheel) groups=3D0(wheel),5(operator)
>  =A0$ ls -l
>  =A0-rwxr-xr-x =A01 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTim69aoAAr39UKWGMQTbzZz7xmbPEA>