FTP服务器登录后无法写入,报错:
ftp> mkdir 123
550 Create directory operation failed.
是selinux的问题。
查看selinux关于ftp的设置
[root@appser mm]# getsebool -a |grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
allow_tftp_anon_write --> off
ftp_home_dir --> off
ftpd_connect_db --> off
ftpd_disable_trans --> off
ftpd_is_daemon --> on
httpd_enable_ftp_server --> off
tftpd_disable_trans --> off
将ftp_home_dir 开启就搞定了。
[root@appser mm]# setsebool ftp_home_dir 1
或者直接关闭selinux
cat /etc/selinux/config