Saturday, May 21, 2016

Disable Ctrl + ALT + Del restart


Hitting CTRL-ALT-DELETE on most Linux distributions will start the soft reboot process. Normally I like to disable this (at least on production systems) because someone might make a mistake and reboot the system. Also what I don’t like about this shortcut is that you don’t need to be logged in (no user/password needed – but only console access) to reboot the system. 

01. Login as root

02. Edit the following system file (inittab)

03. To locate the system file 

[root@srinivaslinux~]#whereis inittab

04. To find out the file type 

[root@srinivaslinux~]#file /etc/inittab
05. To edit the text editor 
[root@srinivaslinux~]#nano /etc/inittab

06. Comment this line (insert # mark)

#ca::ctrlaltdel:/sbin/shutdown –ts –r now

07. Save this file

Ctrl + O

08. Exit the file 

Ctrl + X

09. Reload the inittab file in to memory again

[root@srinivaslinux~]#init q
or otherwise we have to restart the system

No comments:

Post a Comment