Article View: net.bugs.usg
Article #4Re: Sv.2 suid bits
From: Clive Charlwood
Date: Mon, 09 Dec 1985 19:19
Date: Mon, 09 Dec 1985 19:19
26 lines
1588 bytes
1588 bytes
>
> >> On SV.2 (3b2, pc7300 (Safari)) suid bits do not work on shell scripts. Am
> >> I just silly or don't I remember them working on 2 other UN*X-ish (TNIX,
> >> XENIX) environments?
> >Suid bits on shell scripts don't work on any machine I have ever used.
> >This includes PDP-11/70, Vax, 3b20, U370, PC7300. It is frustrating,
> >but I have wound up making up a little C program which execs the shell.
> >The C program has the suid bit set...
>
> I'm glad I didn't know this, because I had need of some scripts that
> were suid, so I wrote them and they worked! I am on a Masscomp,
> which runs a blend of SysIII, SysV, 4.1, and 4.2.
>
I too have used the setuid bit on a masscomp machine. Two important
points though.
i) You need to include the line '#! /bin/sh' so that exec(2) can
handle it.
ii) Your shell script runs as a restricted shell. (Anybody know a
way around this folks)
Clive Charlwood.
P.S. I hate :->, :-) ;-} etc. Please desist.
Technical Details
Message-ID:
<697@abic.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!cwruecmp!abic!crcReferences:
<123@rexago1.UUCP> <6600001@ndm20>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site abic.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!cwruecmp!abic!crc From: crc@abic.UUCP (Clive Charlwood) Newsgroups: net.bugs.usg Subject: Re: Sv.2 suid bits Message-ID: <697@abic.UUCP> Date: Mon, 9-Dec-85 14:19:02 EST Article-I.D.: abic.697 Posted: Mon Dec 9 14:19:02 1985 Date-Received: Wed, 11-Dec-85 03:22:10 EST References: <123@rexago1.UUCP> <6600001@ndm20> Organization: Allen-Bradley Co., Highland Heights, OH 44143 Lines: 26