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):

# 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 Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
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 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 VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
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> for code samples. Still have questions? Post it on our forum