Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2011 21:47:58 +0400
From:      Pan Tsu <inyaoo@gmail.com>
To:        Chris Telting <christopher-ml@telting.org>
Cc:        freebsd-questions@freebsd.org, krad <kraduk@gmail.com>
Subject:   Re: Established method to enable suid scripts?
Message-ID:  <86k4duh4q9.fsf@gmail.com>
In-Reply-To: <4DCD02EF.7050808@telting.org> (Chris Telting's message of "Fri,  13 May 2011 03:07:43 -0700")
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

  #! /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.



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