[root@localhost ~]# uname -a Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# cat /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # #Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target #创建ctrl-alt-del.target文件可以设置按下ctrl-alt-del键后的操作 # systemd uses ‘targets‘ instead of runlevels. By default, there are two main targets: # # multi-user.target: analogous to runlevel 3 # graphical.target: analogous to runlevel 5 # # To set a default target, run: # # ln -sf /lib/systemd/system/<target name>.target /etc/systemd/system/default.target # [root@localhost ~]# touch /etc/systemd/system/ctrl-alt-del.target [root@localhost ~]# ll /etc/systemd/system/ctrl-alt-del.target -rw-r--r--. 1 root root 0 9月 8 22:07 /etc/systemd/system/ctrl-alt-del.target [root@localhost ~]#
我觉得很有必要把这个重启键禁用掉,以免误操作
Centos7关于禁用Ctrl+Alt+Del重启电脑的设置
原文地址:http://9796716.blog.51cto.com/9786716/1692925