[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: turning off computer



"BB" == Boris D Beletsky <borik@isracom.co.il> writes:

  >>>>>>>>> On Wed, 5 Mar 1997, I wrote:
  I> Is there a way for a user without root priveleges to cleanly
  I> unmount the root file system and shutdown the computer?
  I> 
  I> I've been running 'init 0' as root before turning off the box,
  I> but I don't want to have to give out the root password to my
  I> family (it's bad enough that I know it!) just so they can turn
  I> the thing off when I'm not around. We'd rather not leave it on
  I> when it is not in use.
  I> 
  I> Thanks, Rikki

  BB> Well, the easiest is to write a script and chmod 6755 it.

Errmm... Unless something has changed very recently, linux does not
allow setuid shell scripts.  Check out the other replies, and use
either the inittab or sudo solution.

-Larry



--
  Larry Daffner        |  Linux: Unleash the workstation in your PC!
  vizzie@airmail.net / http://web2.airmail.net/vizzie/
Osborn's Law:
Variables won't; constants aren't.


Reply to: