Index: [Article Count Order] [Thread]

Date:  Mon, 14 Apr 2008 18:44:40 +0100
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:12565] Re: CTRL - ALT - DEL
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200804141944.40961.bq (at mark) solarspeed.net>
In-Reply-To:  <48037da6.14be600a.0c07.ffffa95f (at mark) mx.google.com>
References:  <48037da6.14be600a.0c07.ffffa95f (at mark) mx.google.com>
X-Mail-Count: 12565

Hi Doug,

> When I switched the kvm over from a windows machine to one of the Linux
> machines, I inadvertently hit CRTL-ALT-DEL (spastic fingers) and it started
> the reboot process.
>
> Is there a way to disable a reboot unless you are logged in?

The action taken for CTRL-ALT-DEL is defined in /etc/inittab and if you check 
that file out you will see a line like this:

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

If you want to disable this action just change that line. Either comment it 
out or replace it with something like this:

ca:12345:ctrlaltdel:/bin/echo "CTRL-ALT-DEL is disabled"

After making any changes to the inittab file you will have to tell init to 
reload it in order to activate the changes. To do that, simply run as root:

init q

-- 
With best regards,

Michael Stauber