日期:2014-05-16  浏览次数:20656 次

suse Linux FTP 配置
FTP配置

建议使用vsftp,如果使用了pure-ftpd,需要屏蔽掉pure-ftpd服务。

(1)Root用户执行yast2---》network services--》network services (inetd)

将/usr/sbin/pure-ftpd 和/usr/sbin/vsftpd

分别将pure-ftp的状态置为off,vsftpd的状态置为on,然后单击按钮,修改完成。

(2)vi /etc/vsftpd.conf 注释要去掉,下面的四项

#write_enable=YES

#local_enable=YES

#ascii_upload_enable=YES

#ascii_download_enable=YES

#listen=YES

#anonymous_enable=NO


(3)vi /etc/ftpuser 将root用户注释掉

(4)重启网络服务:/etc/init.d/xinetd restart

这样你就了解Suse ftp配置吧。



=============================================================

接连FTP时,出现"500 OOPS: could not bind listening IPv4 socket"的错误提示,不能登录。
这时检查2个文件: /etc/xinetd.d/vsftpd 和 /etc/vsftpd.conf;

我的 /etc/xinetd.d/vsftpd 文件内容:

[root@vps ~]# vi /etc/xinetd.d/vsftpd
# default: on
# description:
#   The vsftpd FTP server serves FTP connections. It uses
#   normal, unencrypted usernames and passwords for authentication.
# vsftpd is designed to be secure.
service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/local/sbin/vsftpd
#       server_args             =
#       log_on_success          += DURATION USERID
#       log_on_failure          += USERID
        nice                    = 10
        disable                 = no
}我的 /etc/vsftpd.conf 文件部分内容:

#验证方式
#pam_service_name=vsftpd

# 启用FTP数据端口的数据连接
connect_from_port_20=YES

# 以独立的FTP服务运行
listen=yes 解决办法:

如果上面 /etc/xinetd.d/vsftpd 文件里的 disable = no,就把 /etc/vsftpd.conf 文件里的 listen=yes 改成 listen=no,这时vsftpd将以 xinetd 运行模式工作;或者把 /etc/xinetd.d/vsftpd 文件里  disable = no 改成 disable = yes,etc/vsftpd.conf 文件里的 listen=yes 保持不变,这时vsftpd 将以 standalone 模式工作。

最后运行:
/etc/init.d/xinetd restart
/etc/service vsftpd restart
即可解决问题!!!!!(转)