From: bsh20858@news.fhda.edu (Brian S Hiles)
Subject: Re: Cannot Set Owner & User-ID bit to Root via script
Date: 1996/08/16 [thread overview]
Message-ID: <4v0epb$aff@tiptoe.fhda.edu> (raw)
In-Reply-To: 3213B0BC.CF6@pangea.stanford.edu
Phil Farrell (farrell@pangea.stanford.edu) wrote:
: Setuid shell scripts are inherently insecure and are a convenient
: way for hackers to get root access. Because of this, I do believe
: that there is some kernel parameter in Digital UNIX that prevents
: shell scripts from running setuid, and that this parameter is
: turned on by default.
: You should try to rewrite your script in C or some other compiled
: language which can more safely be made into a setuid program.
I have to guess at the query because the previous responder deleted it.
(Don't do that!)
You have a few options:
I. Turn the shell program into a binary with the "shc" program which
I have mentioned in a previous thread.
II. Use the "-p" option in ksh, with or without the "set_uid" front-end
that comes with the ksh93 distribution archive at:
http://www.research.att.com/orgs/ssr/book/reuse/ #ksh93
III. Download and compile "indir", a set_uid front-end that is designed
to eliminate the well-known security holes of setuid shell scripts.
ftp ftp.uu.net/archive/comp.sources.unix/volume21/indir
indir Safe way to run setuid shell scripts
ftp ftp.uu.net/archive/comp.sources.unix/volume22/indir.pch
indir.pch Patch -- safely execute (set[ug]id) scripts
-Brian
--
,---. ,---. ,---. ,---. ,---. ,---. ,---.
/ _ \ / _ \ / _ \ / _ \ / _ \ / _ \ / _ \
.' / \ `.' / mailto:bsh20858@challenger.atc.fhda.edu \ `.' / \ `.
__,' `.___,' `.___,' `.___,' `.___,' `.___,' `.___,' `.__
next prev parent reply other threads:[~1996-08-16 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-15 4:00 Cannot Set Owner & User-ID bit to Root via script John G. Bury
1996-08-15 4:00 ` Phil Farrell
1996-08-16 4:00 ` Brian S Hiles [this message]
1996-08-16 4:00 ` Christopher M. Conway
1996-08-16 4:00 ` Casper H.S. Dik - Network Security Engineer
1996-08-16 4:00 ` Dave Plonka
1996-09-05 4:00 ` J. Anderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox