davee@cyclone.mitre.org (D. N. Edwards) (02/23/91)
I have a couple of machines going on a road trip soon. I'd like to know if there's an easy way to allow non-su users to 'halt' the machines. I've changed group protections on halt and init, but I always get the error "Init: can't idle init." We're running SunOS 4.0.3. Any tips appreciated! [[Ed's Note: Of course, you could always make halt owned by root, and run setuid, but I wouldn't recommend this - it's a real security hole. -bdg]]
sjl@doc.ic.ac.uk (Steve J Lacey) (03/16/91)
In article <1746@brchh104.bnr.ca> davee@cyclone.mitre.org (D. N. Edwards) writes:
davee> I have a couple of machines going on a road trip soon. I'd like to know
davee> if there's an easy way to allow non-su users to 'halt' the machines. I've
davee> changed group protections on halt and init, but I always get the error
davee> "Init: can't idle init." We're running SunOS 4.0.3. Any tips
davee> appreciated!
Have an entry in the password file with the shell as /etc/halt and uid 0.
Steve J Lacey, Systems Group. (In my opinion, my opinions are just that.)
Department of Computing, Imperial College of Science, Technology and Medicine,
180 Queen's Gate, London SW7. Phone : 071 589 5111 x5085, Fax : 071 581 8024
Email : sjl@doc.ic.ac.uk, ..!ukc!icdoc!sjl, sjl@athena.mit.edu