How to Disable CTRL-ALT-DEL shutdown key on Linux server

[Ctrl]-[Alt]-[Delete] is a shortcut key to shutdown/reboot the server without having to log on but sometimes it will be a problem by accidently pressing the [Ctrl]-[Alt]-[Delete] key in the production Linux server console. In order to prevent the use of [Ctrl]-[Alt]-[Delete] key combination on a production server, we MUST disable it.

Basically it is configured using /etc/inittab file. This is the main configuration file of /sbin/init, which is executed by the kernel on startup. It describes what scripts are used for the different run-levels. Edit /etc/inittab file and comment (or remove it) ctrlaltdel entry.

Edit configuration file:
# vi /etc/inittab

Search for line:
ca::ctrlaltdel:/sbin/shutdown -r -t 4 now

Remove the line or comment out the above line by putting a hash mark (#) in front of it:
#ca::ctrlaltdel:/sbin/shutdown -r -t 4 now

Save the file and exit to shell prompt:
:wq!

Read more

Possibly Related Posts:


Free Shells

I'm looking for a free Linux/Unix [tag]SSH[/tag] access for personal reason and I found the list here.

  • Ariel.Atlantica.US – Free Linux shell accounts, offers IPv6 access for IRC (including bots and bouncers) and more. Limited IPv4 access. 32 MB quota.
  • Blinkenshell – Free shell accounts hosted on Gentoo Linux. 50 MB quota, 2 background processes. Services including IRC access (no bots or bouncers), compilers and interpreters, email programs and webhosting with PHP/CGI.
  • boinc.ch – Free OpenBSD shells with no outgoing connections, no background processes. Users get an e-mail account and space for a personal web page or storage, plus access to GNU/Unix tools and PHP.
  • Bur.st – Free Linux shells for Australian residents. IRC, mail and web hosting.
  • Celebris.net – FreeBSD shell accounts mainly for learning purposes. Email address, web space, IRC with vhosts, one background process allowed. No bots or BNC, cannot install own programs.
  • ClueNet – ClueNet is a community providing services including free UNIX shells and email. Multiple shell servers available by signing up once.
  • Cyberspace Communications (Grex) – Offers conferencing and chat in addition to traditional free shell services. Governed by a cooperative of its users. Currently not accepting new accounts, since May 2005.
  • Fastshell – Free Debian Linux shells. IRC enabled with bots and BNC permitted. Requires registration with advertisers.
  • Free Linux Shells – Free [tag]Redhat[/tag] Linux shells, bots and IRC permitted. Requires registration with advertisers.

Read more

Possibly Related Posts:


30 Best Companies to Work in Malaysia

I’m just would like to share about the 30 “Best Companies to Work in Malaysia”

If you are looking for new job or change job, you may looking for the company listed below.

Read more

Possibly Related Posts:


Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com