Ubuntu Linux Disable control-alt-delete [CTRL-ALT-DEL] Emergency Keypress Handling

Q. How do I delete control-alt-delete emergency keypress handling to improve security of my Ubuntu Linux server?

A. When you hit the Control-Alt-Delete key combination system get rebooted. This operation is controlled via a special file located at /etc/event.d/control-alt-delete directory. Simply open this file using a text editor:
$ sudo vi /etc/event.d/control-alt-delete
OR
$ sudo gedit /etc/event.d/control-alt-delete
Find line that read as follows:
exec /sbin/shutdown -r now "Control-Alt-Delete pressed"
delete configuration line or comment out line by prefixing # symob:
#exec /sbin/shutdown -r now "Control-Alt-Delete pressed"
Save and close the file.

ADVERTISEMENTS

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
4 comments… add one
  • M Nov 21, 2008 @ 10:45

    Its not working for live cd (ubuntu 8.1)
    Tried many options.. nothing works out

  • V.Balaviswanathan Apr 23, 2009 @ 14:42

    Thanks a lot for your tips……It was helpful

  • V.Balaviswanathan Apr 24, 2009 @ 17:58

    Hi,
    If anyone helps me to clear this doubt, I will be grateful to them…….

    How to make my USB hard disk mount on my ubuntu machine(all) and copy those files onto the local hard drive……Please help

    Thank You

    Bala

  • Enriqueta Schryver Oct 4, 2011 @ 12:02

    That was a impressive material. I enjoyed it very much. Enriqueta Schryver

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.