From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dfef95ea2d912748 X-Google-Attributes: gidfee84,public From: speno@swarthmore.edu (John P. Speno) Subject: Re: [Q] SET-USER-ID and SHELL SCRIPTS Date: 1996/03/12 Message-ID: <4i4996$igh@gingko.cc.swarthmore.edu>#1/1 X-Deja-AN: 142740123 references: <826628780snz@spclmway.demon.co.uk> content-type: text/plain; charset=US-ASCII organization: Swarthmore College mime-version: 1.0 newsgroups: comp.unix.osf.osf1 In <826628780snz@spclmway.demon.co.uk> Gareth Owen 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."