Established method to enable suid scripts?
inyaoo at gmail.com
Fri May 13 18:12:54 UTC 2011
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
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.
More information about the freebsd-questions