From owner-freebsd-questions@FreeBSD.ORG Sat May 14 20:02:42 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5809106566C for ; Sat, 14 May 2011 20:02:42 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 74BEA8FC1B for ; Sat, 14 May 2011 20:02:42 +0000 (UTC) Received: by iyj12 with SMTP id 12so4017979iyj.13 for ; Sat, 14 May 2011 13:02:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.133.3 with SMTP id f3mr3378887ict.32.1305403361836; Sat, 14 May 2011 13:02:41 -0700 (PDT) Sender: aimass@yabarana.com Received: by 10.231.30.202 with HTTP; Sat, 14 May 2011 13:02:41 -0700 (PDT) In-Reply-To: <868vu9qeum.fsf@red.stonehenge.com> References: <4DC9DE2C.6070605@telting.org> <201105121657.57647.j.mckeown@ru.ac.za> <4DCBFC39.8060900@telting.org> <201105130932.32144.j.mckeown@ru.ac.za> <4DCD02EF.7050808@telting.org> <86k4duh4q9.fsf@gmail.com> <868vu9qeum.fsf@red.stonehenge.com> Date: Sat, 14 May 2011 16:02:41 -0400 X-Google-Sender-Auth: 8ySapbRN-p7PPUb48NnuevZK_wQ Message-ID: From: Alejandro Imass To: "Randal L. Schwartz" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Chris Telting , freebsd-questions@freebsd.org, Pan Tsu , krad Subject: Re: Established method to enable suid scripts? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2011 20:02:42 -0000 On Sat, May 14, 2011 at 3:09 PM, Randal L. Schwartz wrote: >>>>>> "Pan" =3D=3D Pan Tsu writes: [...] > (Untested) why not just "#!/usr/local/bin/sudo" ? =A0It'll be given the > filename as an argument. Precisely. I think this thread should be forked to something like "suid versus sudo for scripts"? I second the sudo idea instead of suiding the interpreter, and it's a better solution to the one I have used in the past like C-wrapping and suiding specific operations.