home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!ericom!ppvku!pers
- From: pers@ppvku.ericsson.se (Per Stromgren)
- Newsgroups: comp.sys.sun.admin
- Subject: Safe shutdown by users?
- Message-ID: <1992Dec22.155251.11588@ericsson.se>
- Date: 22 Dec 92 15:52:51 GMT
- Sender: pers@ppvku (Per Stromgren)
- Organization: Ericsson
- Lines: 28
- Nntp-Posting-Host: ppvku.ericsson.se
-
- Dear Net!
-
- At our site we need a better shutdown program than
- pulling the plug. /etc/shutdown is not executable by ordinary
- users here, we want it to be that way, but we would like to
- wrap shutdown with a script that does such things as
- - check that user is logged in on console
- - check that user is alone on the system
- - check that the system is diskless
- - send a mail to us admin people
-
- The goal is to let people shutdown/reboot their (own) machines,
- if they do it through our programmed checklist above.
-
- I just set off the write the script, but I'm not smart enough
- to figure out how to setgid/setsid c-program->csh script or
- whatever, to make the whole thing at least medium safe.
-
- My first idea was to write a setgid c-program that just do
- system("<my script>") and my script would have rwxr-x--- with
- the group set to same group as the setgid program. But, as I
- just said, I need a helping hand. Have one?
-
- Regards,
- Per Stromgren.
- pers@ppvku.ericsson.se
- Ericsson Programatic Sweden AB
-
-