Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!gem.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!image.soe.clarkson.edu!news From: mrd@sun.soe.clarkson.edu (Michael DeCorte) Newsgroups: comp.unix.questions Subject: program to power down SV box Message-ID: Date: 18 Sep 89 23:43:59 GMT Sender: news@sun.soe.clarkson.edu Distribution: comp Organization: Clarkson University, Potsdam NY Lines: 40 hello, I need to be able to powerdown a SV box (vme147). There are 3 requirements: 1) secure 2) gracefull 3) user will not be in / when doing this its the last part the bothers me. I think the following will work but I wanted to know if anyone saw anything wrong. user is running program abc and decides to quit and powerdown the system. abc was not started from /. abc exec' xyz xyz is an suid root executable (not shell script) that : cd / while (prompted pw != root pw); exec /etc/init 0 I know that there isn't much here but I have bad dreams giving fsck something to do :-) -- Michael DeCorte // H215-546-0497 W386-8164 Fax386-8252 // mrd@clutx.bitnet 2300 Naudain St. "H", Phil, PA 19146 // mrd@sun.soe.clarkson.edu --------------------------------------------------------------------------- Clarkson Archive Server // commands = help, index, send, path archive-server@sun.soe.clarkson.edu archive-server%sun.soe.clarkson.edu@omnigate.bitnet dumb1!dumb2!dumb3!smart!sun.soe.clarkson.edu!archive-server ---------------------------------------------------------------------------