我在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
注意:重启多次.