Linux Administration
medium

Questão de Linux Administration #019e3987

Enunciado da Questão
Linux Administration
#inittab
#sysvinit
#ctrlaltdel
#init
Médio

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

A

/etc/keys

B

/proc/keys

C

/etc/inittab

Correta
D

/proc/inittab

E

/etc/reboot

Explicação Oficial / Explicações da Comunidade

The SysV init system uses the /etc/inittab file to define actions for various system events, including the Ctrl-Alt-Delete key combination. To disable this key combination, you must modify the line in /etc/inittab that handles the ctrlaltdel action. Typically, this line looks like ca::ctrlaltdel:/sbin/shutdown -t1 -a -r now. Commenting out or removing this line prevents the system from rebooting when Ctrl-Alt-Delete is pressed.

How it Works
The /etc/inittab file is read by the init process (PID 1) at boot and when changes are signaled. Each line defines a runlevel, action, and command. The ctrlaltdel action is a special keyword that tells init to execute the specified command when the key combination is pressed. By modifying this line, you control the system's response.