- 论坛徽章:
- 0
|
我搭建了一个vsftp服务器,在解决SElinux问题时,日志提示让
If you want to allow /usr/sbin/vsftpd to be able to write to shared public content
Then you need to change the label on pub to public_content_rw_t, and potentially turn on the allow_httpd_sys_script_anon_write boolean.
Do
# semanage fcontext -a -t public_content_rw_t pub
# restorecon -R -v pub
# setsebool -P allow_ftpd_anon_write 1
我输入semanage fcontext -a -t public_content_rw_t pub这个,pub目录的安全上下文一直更改不了,我的系统版本是
[root@localhost pub]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.6 (Santiago)
Release: 6.6
Codename: Santiago
有哪位大牛知道原因,跪求。。。。。。。。。。。。。。。 |
|