- 查看selinux的状态,一般情况是这么显示
[[email protected] alidata]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
显示selinux是开启的而且状态为enforcing,这就必须把ftp的seliunx控制打开才行查看ftp的selinux的控制状态[[email protected] alidata]# getsebool -a|grep ftpallow_ftpd_anon_write --> offallow_ftpd_full_access --> offallow_ftpd_use_cifs --> offallow_ftpd_use_nfs --> offftp_home_dir --> offftpd_connect_db --> offftpd_use_fusefs --> offftpd_use_passive_mode --> offhttpd_enable_ftp_server --> offtftp_anon_write --> offtftp_use_cifs --> offtftp_use_nfs --> off设置 ftp_home_dir为on allow_ftpd_full_access为on即可使用命令 setsebool ftp_home_dir=on,另外一个参数类似,如果想重启继续生效,加上-P选项 setsebool -P ftp_home_dir=on