Linux disable local ctrl+alt+delete

Nov 07
1

Linux disable local ctrl+alt+delete

Tue, 2006-11-07 23:29 — superuser

I have a linux box on a KVM - a few times I’ve switched over to it and done the ctrl+alt+del by accident (expecting an NT login) - and Unfortunately on fedora out of the box this shuts the machine down - not very good in office hours!

So I found this useful

In /etc/inittab

    # Trap CTRL-ALT-DELETE
    #ca::ctrlaltdel:/sbin/shutdown -t3 -r now
    ca::ctrlaltdel:/bin/echo “ctrl+alt+del disabled”

No more accidental reboots….

Comments

Anonymous (not verified) says:

your fix worked a treat!
Many thanks

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options