Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: cfm@maine.com
To: axp-list@redhat.com
Cc: axp-list@redhat.com
Subject: Re: SUID scripts?
Date: Fri, 7 Aug 1998 06:29:38 -0500 (EST)	[thread overview]
Message-ID: <19980807112938.1678.qmail@headwall.maine.com> (raw)
In-Reply-To: <199808070403.WAA07748@ellpspace.math.ualberta.ca> from Michal Jaegermann at "Aug 6, 98 10:03:01 pm"

> Mike \"Ford\" Ditto wrote:
> > 
> > Here is an implementation of "secure" set-ID #! files (A.K.A. set-uid
> > shell scripts) for Linux 2.0.x.
> 
> [ Long kernel hack with unknown security implications and a need to
>   be redone for every new kernel version elided... ]
> 
> Instead of that it is much simpler to have a compiled "wrapper"
> program which can call your shell script, avoiding various race
> conditions, and execute it under id you want.  This is, for example,

Just a thought: even that might not always work with every
shell.  I recently built bash 2.latest and had to change some 
default setting that had to do with this.  ( It is documented 
in the bash README.)  If I understand correctly, the `full-featured'
shells like bash aren't appropriate for execution SUID and that
more, uh, rigorous shells like /bin/sh or better yet, perl are more
suited.

If you are going to wrap it and run it suid, you are probably better
off doing it in perl.

$.02

cfm


 




-- 

Christopher F. Miller, Publisher                            cfm@maine.com
MaineStreet Communications, Inc        208 Portland Road, Gray, ME  04039
1.207.657.5078  (MTRF 3-5pm)                        http://www.maine.com/


  reply	other threads:[~1998-08-07 11:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-06 18:42 SUID scripts? Christopher Curtis
1998-08-06 18:55 ` Jeff Sturm
1998-08-07  0:23   ` Mike "Ford" Ditto
1998-08-07  4:03     ` Michal Jaegermann
1998-08-07 11:29       ` cfm [this message]
1998-08-08 10:55         ` Christoph Zens
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