Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!hayes.ims.alaska.edu!raven.alaska.edu!milton!sumax!polari!rwing!seaeast!sunbrk!Usenet From: Bill.Vermillion@sunbrk.FidoNet.Org (Bill Vermillion) Newsgroups: comp.unix.sysv386 Subject: Re: Somebody . . . Eureka! Message-ID: <675397058.16@sunbrk.FidoNet> Date: 25 May 91 01:47:50 GMT Sender: Usenet@sunbrk.FidoNet.Org Lines: 29 In article <1991May18.051251.1438@stb.info.com> andyb@stb.info.com (Andy B.) writes: >crawford@ENUXHA.EAS.ASU.EDU (Brian Crawford) writes: >> 2) We do not always have someone present w/ super-user privs, and need to run >> 'shutdown' from a few other accounts. Could someone please recommend a way >> to shutdown the system down without superuser privilages? The 'shutdown' >> with this sytem (SCO XENIX 2.3.2) will only work from a super-user privs- >> even when the file ownership is changed at the command line. >I've never done it but, how about putting a wrapper around the >shutdown command? Then whomever you want to run shutdown, can own >the wrapper, and the wrapper can give them the right priveledges >for the duration of the command. For starters LOOK at the shutdown command. It's a script on the SCO Xenix systems (don't know about SCO Unix). There is a line that tests for login-in and if it's running at the console. Clone the script, modify it, and run it that way. A wrapper won't do it from what I can see. -- Bill Vermillion - UUCP: ...!tarpit!bilver!bill : bill@bilver.UUCP * Origin: Seaeast - Fidonet<->Usenet Gateway - sunbrk (1:343/15.0)