setenforce:SELinux被禁用

setenforce:SELinux被禁用,第1张

概述我在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. 总结

以上是内存溢出为你收集整理的setenforce:SELinux被禁用全部内容,希望文章能够帮你解决setenforce:SELinux被禁用所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/1040829.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存