LX0-103 · Question #40
Which of the following configuration files should be modified to disable the ctrl-alt-delete key combination?
The correct answer is C. /etc/inittab. On SysV init systems, /etc/inittab controls the system response to Ctrl+Alt+Delete by defining or removing the 'ctrlaltdel' action entry.
Question
Which of the following configuration files should be modified to disable the ctrl-alt-delete key combination?
Options
- A/etc/keys
- B/proc/keys
- C/etc/inittab
- D/proc/inittab
- E/etc/reboot
How the community answered
(64 responses)- A3% (2)
- C95% (61)
- D2% (1)
Why each option
On SysV init systems, /etc/inittab controls the system response to Ctrl+Alt+Delete by defining or removing the 'ctrlaltdel' action entry.
'/etc/keys' is not a standard Linux configuration file and plays no role in key combination handling by init.
'/proc/keys' is a read-only kernel keyring information file that exposes key metadata - it cannot be edited to change key combination behavior.
/etc/inittab is the configuration file read by the SysV init process that defines actions for various runlevel and special events. The line with the 'ctrlaltdel' action keyword tells init what to do when the key combination is pressed - commenting it out or removing it disables the reboot behavior. On systemd systems the equivalent is masking ctrl-alt-del.target, but on traditional SysV systems /etc/inittab is the correct location.
'/proc/inittab' does not exist - the /proc filesystem exposes kernel and process data but does not contain an inittab file.
'/etc/reboot' is not a real configuration file on Linux systems and has no effect on the Ctrl+Alt+Delete key combination.
Concept tested: Disabling Ctrl+Alt+Delete reboot via /etc/inittab
Source: https://man7.org/linux/man-pages/man5/inittab.5.html
Topics
Community Discussion
No community discussion yet for this question.