nerdexam
CompTIA

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.

System Architecture

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)
  • A
    3% (2)
  • C
    95% (61)
  • D
    2% (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.

A/etc/keys

'/etc/keys' is not a standard Linux configuration file and plays no role in key combination handling by init.

B/proc/keys

'/proc/keys' is a read-only kernel keyring information file that exposes key metadata - it cannot be edited to change key combination behavior.

C/etc/inittabCorrect

/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.

D/proc/inittab

'/proc/inittab' does not exist - the /proc filesystem exposes kernel and process data but does not contain an inittab file.

E/etc/reboot

'/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

#inittab#ctrl-alt-delete#system initialization#key bindings

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice