Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Aug 1998 21:58:29 -0400
From:      Matthew Hunt <mph@pobox.com>
To:        Terry Todd <tlt@tltodd.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: setuid shell script
Message-ID:  <19980810215829.A778@flarn.dyn.ml.org>
In-Reply-To: <199808110017.TAA20898@tltodd.com>; from Terry Todd on Mon, Aug 10, 1998 at 07:17:23PM -0500
References:  <199808110017.TAA20898@tltodd.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mph@pobox.com> * 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



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