Linux Disable the Ctrl-Alt-Delete shutdown keys
On a production system it is recommended that you disable the [Ctrl]-[Alt]-[Delete] shutdown. It is configured using /etc/inittab (used by sysv-compatible init process) file. The inittab file describes which processes are started at bootup and during normal operation. You need to open this file and remove (or comment it) ctrlaltdel entry.
Ctrlaltdel specifies the process that will be executed when init receives the SIGINT signal. SIGINT is the symbolic name for the signal thrown by computer programs when a user wishes to interrupt the process, for example reboot/shutdown system using [Ctrl]-[Alt]-[Del].). This means that someone on the system console has pressed the CTRL-ALT-DEL key combination. Typically one wants to execute some sort of shutdown either to get into single-user level or to reboot the machine.
Disable CTRL+ALT+Del keys
Open /etc/inittab file, enter:
# vi /etc/inittab
Search for line that read as follows:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
And remove the line or comment out the above line by putting a hash mark (#) in front of it:
# ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Save the file and exit to shell promot. Reboot system to take effect or type command:
# init q
See also:
- Shutdown account to shutdown Linux server
- Linux Shutdown Command and Logfile
- Howto shutdown Linux box automatically?
- Please consult telinit and inittab man page for more information.
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- Quick Tip: Send Ctr + Alt + Del to XEN Vps / Guest os
- How to: Shutdown Linux box automatically
- Shutdown account to shutdown Linux server
- How to: Allow any users to Shutdown Linux server
- Speeding up work at Linux command line part # 1
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: ctrlaltdel, ctrl_alt_del, disable_ctrlaltdel, inittab_file, production_system, reboot, shutdown_command, shutdown_system



Recent Comments
Today ~ 17 Comments
Today ~ 1 Comment
Today ~ 12 Comments
Today ~ 3 Comments
Today ~ 6 Comments