Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: speno@swarthmore.edu (John P. Speno)
Subject: Re: [Q] SET-USER-ID and SHELL SCRIPTS
Date: 1996/03/12	[thread overview]
Message-ID: <4i4996$igh@gingko.cc.swarthmore.edu> (raw)
In-Reply-To: 826628780snz@spclmway.demon.co.uk

In <826628780snz@spclmway.demon.co.uk> Gareth Owen <geo@spclmway.demon.co.uk> writes:

>Is there some security feature of OSF/1 that stops you doing set-user-id to 
>root on shell scripts (like /bin/sh setting the real user id back)?

Digital Unix does not honor SUID bits on shell scripts. It will honor those
bits on compiled binaries however, so you will have to use a wrapper program
to invoke your shell script.

Larry Wall's wrapsuid perl script comes with the perl package. It will do
the wrapping for you, and it has a built in man page for your reference.

P.S. SUID shell scripts are insecure. If you must write one, write it in
perl, and read up on making safe SUID programs.

-- 
John P. Speno, speno@swarthmore.edu, Swarthmore College Computing Center
	     "There is no wisdom greater than kindness."




      parent reply	other threads:[~1996-03-12  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-12  5:00 [Q] SET-USER-ID and SHELL SCRIPTS Gareth Owen
1996-03-11  5:00 ` Dave Parker
1996-03-12  5:00 ` John P. Speno [this message]
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