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
D.
/proc/inittab
E.
/etc/reboot
题解
选项 A,没有「/etc/keys」这个设置档。
选项 B,「/proc/keys」用于 Linux 密钥保留服务(Linux key retention service)。里头存放的是每个进程(process)可以使用的密钥,与快速键(Shortcuts)无关。
选项 C,SysVinit 的「ctrl-alt-delete」是在「/etc/inittab」中设置,若要取消「ctrl-alt-delete」的功能,可以使用「#」将如以下的设置值注解掉:
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
现在许多 Linux 发行版已采用 Systemd,需使用「/usr/lib/systemd/system/ctrl-alt-del.target」这个文件来设置「ctrl-alt-delete」的功能。
选项 D,没有「/proc/inittab」这个设置档。
选项 E,没有「/etc/reboot」这个设置档。
