首页 > 其他 > 详细

Centos7关于禁用Ctrl+Alt+Del重启电脑的设置

时间:2015-09-08 23:35:39      阅读:3011      评论:0      收藏:0      [点我收藏+]
[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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!