SElinux:如何在不重启的情况下更改为许可模式?
发布时间:2020-12-13 18:15:04 所属栏目:Linux 来源:网络整理
导读:我需要在没有重启的情况下将se linux更改为生产服务器上的“许可模式”,但setenforce不会让我这样做(作为根),它总是打
我需要在没有重启的情况下将se
linux更改为生产服务器上的“许可模式”,但setenforce不会让我这样做(作为根),它总是打印“setenforce:SE
Linux被禁用”
我做错了什么? [root@server3 ~]# setenforce 0 setenforce: SELinux is disabled [root@server3 ~]# setenforce 1 setenforce: SELinux is disabled [root@server3 ~]# setenforce Permissive setenforce: SELinux is disabled [root@server3 ~]# getenforce Disabled 解决方法
setenforce只能用于更改SELinux运行的模式.它不能用于启用SELinux.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |