Article View: sco.opendesktop
Article #66Re: Setting set-uid on a script
From: Bill Davidsen
Date: Wed, 15 Jun 1994 03:53
Date: Wed, 15 Jun 1994 03:53
22 lines
2164 bytes
2164 bytes
In article <gburnoreCr7Czw.Jnz@netcom.com> gburnore@netcom.com (Gary L. Burnore) writes:
| I may be wrong but I think you can't do an suid on a shell script and
| have it work. v3.2.4.2 DOES have a command called asroot which as the
| name implies, runs something "as root". Do man asroot to see how it
| works. Basically root sets up what can/cant be done.
Well, actually ksh allows setuid shripts if you (1) compile with the
SUID_EXEC option on and (2) install the suid_exec binary in /etc. I see
no indication that SCO has done this, so the effective answer is "you
can, but someone didn't include the capability."
If you have the source you can compile and have a working ksh, but it
will lack the SCO value added of directory guessing when you do a 'cd'
and don't get it quite right. One of the few things value added which
actually add value IMHO, and I have not recompiled ksh under SCO to add
setuid scripts.
--
Bill Davidsen, davidsen@tmr.com | C programming, PC based UNIX, data
TMR Associates, +1 518-370-5654 | acquisition, device drivers.
_____________________________________|______________________________________
New England Winter 93-94: Many are cold but few are frozen
Technical Details
Message-ID:
<CrF6tH.Itu@sixhub.tmr.com>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!swrinde!sgiblab!a2i!sixhub!davidsenReferences:
<Cr72uu.6Eo@world.std.com> <gburnoreCr7Czw.Jnz@netcom.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1122ea,ddbf95e66b947726 X-Google-Attributes: gid1122ea,public X-Google-Thread: 1020c6,ddbf95e66b947726 X-Google-Attributes: gid1020c6,public X-Google-Thread: ff1d1,ddbf95e66b947726 X-Google-Attributes: gidff1d1,public X-Google-Thread: 134180,ddbf95e66b947726 X-Google-Attributes: gid134180,public X-Google-ArrivalTime: 1994-06-15 14:16:00 PST Newsgroups: sco.opendesktop,biz.sco.general,biz.sco.opendesktop,comp.unix.admin Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!swrinde!sgiblab!a2i!sixhub!davidsen From: davidsen@sixhub.tmr.com (Bill Davidsen) Subject: Re: Setting set-uid on a script Reply-To: davidsen@tmr.com (bill davidsen) Organization: TMR Associates, Schenectady NY Date: Wed, 15 Jun 1994 03:53:39 GMT Message-ID: <CrF6tH.Itu@sixhub.tmr.com> References: <Cr72uu.6Eo@world.std.com> <gburnoreCr7Czw.Jnz@netcom.com> Lines: 22