我在一台CentOS 5机器上,尝试安装vsftpd。我想使用ftp_home_dir
配置setsebool -P ftp_home_dir on
,但它说:
setsebool: SELinux is disabled.
我尝试使用setenforce
启用它,它仍然是这样说的:
setenforce: SELinux is disabled
然后我试着:
semodule -n -B
上面写着:
semodule: SELinux policy is not managed or store cannot be accessed.
我的配置文件:
# 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
注意:多次重新启动。
发布于 2013-05-19 22:43:40
您使用的内核是在没有SELinux支持的情况下构建的。使用库存内核将不包括您的VPS的适当部分。使用SELinux支持重新构建内核将导致VPS部件无法工作。您不能在VPS上使用SELinux。
发布于 2013-05-19 23:29:31
您的VPS运行在OpenVZ上,这是一种基于容器的“虚拟化”,不支持SELinux。如果您需要SELinux,您将需要切换到另一个在来宾中支持SELinux的管理程序,例如Hyper-V、VMware、KVM、Xen以及其他可能的管理程序。
https://serverfault.com/questions/509114
复制相似问题