这是一个bug还是新特性?:
以下两者二选一,请保留一项:
- bug
【env information】
virtual machine: VMware x86_64
os: openEuler-20.03-LTS-x86_64-dvd.iso
禁止通过CTRL+ALT+DEL重启系统have some problem。
sorry for Chinese:
问题说明:
1.只删除/etc/systemd/system/ctrl-alt-del.target,保留/usr/lib/systemd/system/ctrl-alt-del.target
测试:输入组合键ctrl-alt-del
结果:系统重启。
预期:系统不重启
2. 删除文件/etc/systemd/system/ctrl-alt-del.target和/usr/lib/systemd/system/ctrl-alt-del.target
测试:输入组合键ctrl-alt-del
结果:系统没有重启。
预期:系统不重启
测试:输入组合键ctrl-alt-del按住两秒
结果:系统重启.
预期:系统不重启。
解决方法
要完全禁止ctrl-alt-del快捷键步骤
1.删除ctrl-alt-del.target
rm -f /etc/systemd/system/ctrl-alt-del.target
rm -f /usr/lib/systemd/system/ctrl-alt-del.target
2.修改/etc/systemd/system.conf
将其中#CtrlAltDelBurstAction=reboot-force 修改为CtrlAltDelBurstAction=none
3.执行systemctl daemon-reexec 或者重启系统。
Hey @bluesky, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developpers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Maybe it is for docs team, not website team. I will transfer it to the repo docs.
登录 后才可以发表评论