Gilbert Espinosa wrote:
> 
> Stefan Dozier wrote:
> 
> > At 11:30 AM 5/7/99 +0800, you wrote:
> >
> > >The fastest way for a regular user to shutdown is to press ctrl-alt-del then
> > >press the off button when the screen shows the initial boot up sequence. eg
> > >before memory check
> >
> > You're kidding right....hehehehehehe
> > Stefan Dozier
> > [EMAIL PROTECTED]
> 
> No, actually I saw that trick in one of the Linux Documentation. Don't know
> which one but it does work. Of course you can't do that if you're logged in over
> a network. It is found in the /etc/inittab file. It sure sounds funny though.
> 8^)
> 
> Gilbert

Actually, this is a very legit way of shutting down. Ctrl-Alt-Del key combo is
trapped by linux to reboot. You can actually change this default behaviour -
someone posted about it a long while ago but I cannot remember it now.

You cannot do this over the network, I think. As that will reset your local
machine.
The easiest way to do it, IMHO is to make a small script containing this line:

su -c /sbin/halt

save it (as say, "halt") and make the script executable [chmod +x myfile] and
copy it into your /home/myhome/ directory.
Now, typing "halt" will ask for your root password, once entered, it will
immediately shutdown your machine in the proper manner.

You could also replace the /halt with /reboot for rebooting.

Or...if you somehow do not have the halt and reboot commands (scripts) in your
/sbin, you can write:

su -c "/sbin/shutdown -r now"

instead.
The " are required since you are passing arguments and need to separate with a
space...uhm...you know what I mean, right? :-P

Regards,
-- 
--------------------------------------
Kuraiken - Apprentice Codecaster
& Python breeder
--------------------------------------

Reply via email to