setenforce:SELinux被禁用
发布时间:2020-12-13 17:14:12 所属栏目:Linux 来源:网络整理
导读:我在CentOS 5机器上,尝试安装vsftpd.我想使用setsebool -P ftp_home_dir配置ftp_home_dir,但它说: setsebool:SELinux被禁用. 我尝试使用setenforce启用它仍然说: setenforce:SELinux被禁用 然后我试过: semodule -n -B 它说: semodule:不管理SELinux
我在CentOS 5机器上,尝试安装vsftpd.我想使用setsebool -P ftp_home_dir配置ftp_home_dir,但它说:
setsebool:SELinux被禁用. 我尝试使用setenforce启用它仍然说: setenforce:SELinux被禁用 然后我试过: semodule -n -B 它说: semodule:不管理SELinux策略或无法访问存储. 我的配置文件: # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=permissive # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted 注意:重启多次. 解决方法
您正在使用的内核是在没有SELinux支持的情况下构建的.使用库存内核将不包含适用于您的VPS的相应部件.使用SELinux支持重建内核将导致VPS部分无法工作.你不能在你的VPS上使用SELinux.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |