Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!dino!ux1.cso.uiuc.edu!uiucme2!brando From: brando@uiucme2.me.uiuc.edu (Brando W. Brown) Newsgroups: comp.unix.questions Subject: Re: can you setuid a ksh script? Summary: Yes you can, but... Keywords: KSH setuid script Message-ID: <1990Mar29.174510.13953@ux1.cso.uiuc.edu> Date: 29 Mar 90 17:45:10 GMT References: <10910003@hpcc01.HP.COM> Sender: usenet@ux1.cso.uiuc.edu (News) Reply-To: brando@uiucme2.UUCP (Brando W. Brown) Organization: University of Illinois Mechanical Engineering Lines: 23 In article <10910003@hpcc01.HP.COM> gph@hpcc01.HP.COM (Paul Houtz) writes: >Can a korn shell script be made setuid? > >I have tried doing it with chmod and it hasn't worked. > >Can anyone out there who has already successfully done this please >let me know the steps neccessary? If you know for sure that it >can't be done, that info would be helpful too. > >I want a ksh script that is setuid root. To do this you I think you have to recompile KSH with a switch set in a .h file. More information is included in the README that comes with the source set. Brando +============================================================================+ | Brandon Brown Internet: brando@uiucme.me.uiuc.edu | | Addamax Corporation UUCP: uunet!uiucuxc!addamax!brown | | 2009 Fox Drive GEnie: xmg23356 macbrando | | Champaign, IL 61820 CompuServe: 73040,447 | +============================================================================+