码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-09-08 23:37:41      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:禁用ctrl alt del重启centos7.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重启电脑的设置

标签:禁用ctrl alt del重启centos7.0

原文地址:http://9796716.blog.51cto.com/9786716/1692925

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!