linux下的ftp服务如何架构

来源:百度知道 编辑:UC知道 时间:2024/05/10 12:25:17
本人在自己的window中下,用vmware虚拟机装了一个red hat linux 9.0 ,在linux中可以上网,但是自己的物理机和虚拟机之间不能实现ftp功能,有没有大侠能帮我整一下,有追加分的。能够Ping虚拟机,但是用ftp连的时候出现了这样的错误。
530 Must perform authentication before identifying USER.
linux中的vsftp进程也打开了,而且两边的防火墙我都关了。
我用root身份和非root身份都ftp过,但都是提示上面的那样的错误,我的虚拟机是用桥接的,请问跟这有关系吗?而且每次我关linux时,它的vsftpd都不能停止,重启vsftpd也不能kill死这个ftp进程。

应该是用户问题你是用匿名用户登陆?

配置详细的过程如下:
vsftpd.conf是vsftpd服务器的主配置文件
/etc/vsftpd/vsftpd.conf
配置文件中所有的配置项都有相同的格式
anonymous_enable=YES
配置文件中的注释行以“#”开始
配置文件的详细帮助信息可查询手册页
# man vsftpd.conf
vsftpd.conf的缺省配置:
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES

vsftpd.ftpusers用于保存不允许进行FTP登录的本地用户帐号
# head -5 /etc/vsftpd.ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm

vsftpd.user_list文件具有对vsftpd服务器更灵活的用户访问控制
/etc/vsftpd.user_list
使用vsftpd.user_list文件需要在主配置文件中进行设置
设置禁止vsftpd.user_list文件中的用户登录
userlist_enable=YES
userlist_deny=YES
设置只允许vsftpd.user_list文件中的用户登录
userlist_enable=YES
userlist_deny=NO