🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sco.opendesktop
Article #63

Re: Setting set-uid on a script

#63
From: Guenter Becker
Date: Mon, 13 Jun 1994 13:01
22 lines
1998 bytes
In article <gburnoreCr7Czw.Jnz@netcom.com> gburnore@netcom.com (Gary L.  
Burnore) writes:
> Ring Medical (rmedical@world.std.com) wrote:
> : Kind People,
> 
> : 	We are running SCO v3.2.4.2 and are trying to make a root
> : owned script have a setuid attribute. We have done a chmod u+s
> : to it has well as having it owned by root. All to no avail. I am sure
> : this is in the FAQ but we couldn't find the FAQ. Could anybody give
> : us a lead ?
> 
> 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.
> -- 
You are right, you can't suid a shell script. Someone said, this is for  
security reasons. What you can do, if you have network software installed:
rcmd localhost -l root <command>
This is not very secure, however ...

G. Becker
Technical Details
Message-ID: <2thlav$oio@news.cs.tu-berlin.de>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!netmbx.de!zib-berlin.de!math.fu-berlin.de!cs.tu-berlin.de!news
References: <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: 134180,ddbf95e66b947726
X-Google-Attributes: gid134180,public
X-Google-Thread: ff1d1,ddbf95e66b947726
X-Google-Attributes: gidff1d1,public
X-Google-ArrivalTime: 1994-06-13 06:06:12 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!netmbx.de!zib-berlin.de!math.fu-berlin.de!cs.tu-berlin.de!news
From: gb@buran.fb10.tu-berlin.de (Guenter Becker)
Newsgroups: sco.opendesktop,biz.sco.general,biz.sco.opendesktop,comp.unix.admin
Subject: Re: Setting set-uid on a script
Date: 13 Jun 1994 13:01:19 GMT
Organization: Technical University of Berlin, Germany
Lines: 22
Message-ID: <2thlav$oio@news.cs.tu-berlin.de>
References: <gburnoreCr7Czw.Jnz@netcom.com>
NNTP-Posting-Host: mir.fb10.tu-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit