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.


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 4 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig 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 glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
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> for code samples. Still have questions? Post it on our forum