program to power down SV box
Michael DeCorte
mrd at sun.soe.clarkson.edu
Tue Sep 19 09:43:59 AEST 1989
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 at clutx.bitnet
2300 Naudain St. "H", Phil, PA 19146 // mrd at sun.soe.clarkson.edu
---------------------------------------------------------------------------
Clarkson Archive Server // commands = help, index, send, path
archive-server at sun.soe.clarkson.edu
archive-server%sun.soe.clarkson.edu at omnigate.bitnet
dumb1!dumb2!dumb3!smart!sun.soe.clarkson.edu!archive-server
---------------------------------------------------------------------------
More information about the Comp.unix.questions
mailing list