centos-rhel服务器相关 / 未分类 · 2013年5月6日

vsftp的一些故障总结

ps ftp出现故障时,最好用cli 测试,因为错误提示信息什么的比较明显,不要用图形界面的客户端
*******************************************************
今天遇到的一个问题是selinux 问题导致的
故障现象
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
500 Illegal PORT command.
ftp: bind: Address already in use
解决方法
change the vsftpd.conf to
pasv_enable=YES
http://www.linuxquestions.org/questions/linux-networking-3/ftp-search-dir-ls-error-248586/
*********************************************************************************
#这个方法我没试过呢
主要是由于Iptables防火墙不支持
ip_nat_ftp
ip_conntrack_ftp
在linux的ftp服务器上执行下列命令即可解决
modprobe ip_nat_ftp
modprobe ip_conntrack_ftp

vsftpd 421错误
http://blog.opvps.com/vsftpd-421%E9%94%99%E8%AF%AF/
*********************************************************************************
530 on ubuntu
root@ubuntu:~# cat /etc/pam.d/vsftpd #注释掉那一行就行了
#auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed