Disable ctrl+alt+del on Centos Linux server

How do I disable CTRL + ALT + DEL reboot keys shortcut on Linux server?

CTRL+ALT+DEL reboot is configured using /etc/inittab file. Edit /etc/inittab file and remove ctrlaltdel entry (login as root):
# vi /etc/inittab
Find line:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Replace it (i.e comment out the line by putting a hash mark (#) in front of it):

ADVERTISEMENTS

# ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

Close and save the file. Type command to reread /etc/inittab:
# init q

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 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
2 comments… add one
  • V.Balaviswanathan Apr 24, 2009 @ 17:59

    Cool one…..

  • matin Feb 26, 2013 @ 6:15

    hi, tnx for your great text. but i don’t have this line!!!! in my CentOS 6.3!!!! what should i do?????? pleasssssssssse help me :( i’m in pressure with my boss :((
    thnak you soooooooooooo much :*

Leave a Reply

Your email address will not be published.

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