≡ Menu

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

{ 2 comments… add one }

  • V.Balaviswanathan April 24, 2009, 5:59 pm

    Cool one…..

  • matin February 26, 2013, 6:15 am

    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 Comment

   Tagged with: , , , , , ,