Which configuration file should be modified to disable the Ctrl-Alt-Del key combination in Linux?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

To disable the Ctrl-Alt-Del key combination in Linux, the appropriate configuration file to modify is /etc/inittab. This file is used to define how the system initializes processes, and it includes an entry that defines the action for the Ctrl-Alt-Del key sequence.

When this key combination is pressed, the system typically sends a signal to the init process to reboot the system. By modifying the entry in /etc/inittab, you can specify a different action or completely prevent the reboot action from occurring when these keys are pressed. This might be implemented by commenting out the relevant line or changing the action associated with the key combination to something that does not reboot the system.

The other options do not serve this purpose:

  • /etc/rsylog.conf is used for configuring the rsyslog service, which handles log messages.
  • /etc/login.warn is not a standard configuration file for managing key combinations or system reboots. It may refer to messages displayed during the login process.
  • /etc/hosts is utilized for hostname resolution and has no relation to key combinations or system reboots.

Thus, modifying /etc/inittab is the correct approach for managing the Ctrl-Alt-Del functionality on a Linux system.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy