下文我们一起来看看解决linux下vsftp 553 Could not create file错误办法,如果你碰到此问题可以和小编一起来看看吧.
使用ftp软件登陆后解决了500 OOPS:cannot change directory:/home/这个问题后,再次登录又出现了这个错误提示:553 Could not create file
SELinux设置如下,查看SELinux设置:
- [root@localhost ~]# getsebool -a|grep ftp
- allow_ftpd_anon_write –> off
- allow_ftpd_full_access –> off
- allow_ftpd_use_cifs –> off
- allow_ftpd_use_nfs –> off
- ftp_home_dir –> on
- ftpd_connect_db –> off
- ftpd_use_passive_mode –> off
- httpd_enable_ftp_server –> off
- tftp_anon_write –> off
解决办法是,需要设置allow_ftpd_full_access为on状态.
[root@localhost ~]# setsebool allow_ftpd_full_access on
查看SELinux设置:
- [root@localhost ~]# getsebool -a|grep ftp
- allow_ftpd_anon_write –> off
- allow_ftpd_full_access –> on
- allow_ftpd_use_cifs –> off
- allow_ftpd_use_nfs –> off
- ftp_home_dir –> on
- ftpd_connect_db –> off
- ftpd_use_passive_mode –> off
- httpd_enable_ftp_server –> off
- tftp_anon_write –> off //Vevb.com
重启vsftpd服务,测试可以登陆.
[root@localhost ~]# service vsftpd restart
新闻热点
疑难解答