From owner-freebsd-questions Mon Aug 10 19:24:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA14139 for freebsd-questions-outgoing; Mon, 10 Aug 1998 19:24:45 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from flarn.dyn.ml.org (usr104.third-wave.com [147.72.122.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA14130 for ; Mon, 10 Aug 1998 19:24:41 -0700 (PDT) (envelope-from mph@flarn.dyn.ml.org) Received: (from mph@localhost) by flarn.dyn.ml.org (8.8.8/8.8.8) id VAA00842; Mon, 10 Aug 1998 21:58:29 -0400 (EDT) (envelope-from mph) Message-ID: <19980810215829.A778@flarn.dyn.ml.org> Date: Mon, 10 Aug 1998 21:58:29 -0400 From: Matthew Hunt To: Terry Todd , freebsd-questions@FreeBSD.ORG Subject: Re: setuid shell script References: <199808110017.TAA20898@tltodd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93i In-Reply-To: <199808110017.TAA20898@tltodd.com>; from Terry Todd on Mon, Aug 10, 1998 at 07:17:23PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Aug 10, 1998 at 07:17:23PM -0500, Terry Todd wrote: > Is there something that prevents a setuid root shell script from > working? Yes; they are deliberately not allowed, because as you note they are inherently unsafe. You will have to write a compiles setuid program that runs the script that you want. You could probably use Perl also, as it provides its own magic for making setuid scripts work. -- Matthew Hunt * Inertia is a property of matter. http://www.pobox.com/~mph/pgp.key for PGP public key 0x67203349. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message