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

Re: switch off Debian



*- Michael Wahl wrote about "switch off Debian"
> Hello out there,
> 
> After all I finally installed DEBIAN.
> And, what else, I have a question:
> When I successfully logout, a knew login appears. Know I switch off the 
> computer. When I switch it on again, there is a check for some stuff.
> Is this right? Or have I not correctly finished it?
> 
> 
> Thanks 
> 
> Michael, Trier, Germany
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
> 

Make sure you have the following in your /etc/inittab, which I think is
the default on Debian.

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -h now

Thus when you are on a console and you give your computer the 3 finger
salute(aka. ctrl-alt-del) it will run the command 
'/sbin/shutdown -t1 -h now' which will properly unmount your drives and
stop all processes.  You will then see a message 'System Halted', at
which point you can power off your machine.

The nice thing about this set up is that you don't have to login to
roots acount, or use su or sudo, anybody on the console can shut the pc
down without having access to roots account.

-- 
Brian 
---------------------------------------------------------------------
"Never criticize anybody until you have walked a mile in their shoes,  
 because by that time you will be a mile away and have their shoes." 
							   - unknown  

Mechanical Engineering                              servis@purdue.edu
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------


Reply to: