红联的朋友们好。今天向大家求助一个问题。
先谢过大家了。。
对了先说一点。两台机器之间可以相互ping通的。。我用XP做的IIS 6.0做了一个FTP 都可以用!linux 也可以访问XP里的FTP。所以连接应该不成问题
我今天在linux里用试验。后来想到用vsftpd这个软件,把里面的东西拷出来。然后就开始弄vsftpd了。。
安装还顺利 然后重启服务 都行。
然后我就开始了配置。。
下面是VSFTPD的主要配置文件vsftpd.conf
[root@localhost vsftpd]# more vsftpd.conf | grep -v '#' :这个是说把不是注释的部分显示出来
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=777
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
listen=YES
tcp_wrappers=YES
下面的是我的vsftpd用户vsftpd.ftpusers里的用户
[root@localhost lan1]# cat /etc/vsftpd.ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
vsftpd.user_list里面的用户。。
[root@localhost etc]# cat vsftpd.user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers
# for users that are denied.
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
root
应该需要配置的就是上面的三个文件吧!!
这些配置完以后。。
我用 ftp 127.0.0.1 这个来FTP 那linux里的主机。。
可结果是现实 是说 连接被拒绝!!
然后我用 连接XP。。显示是说 也是说被拒绝!!我就很纳闷了我。。。
求高手指点迷津
小生不胜感激!!
jack_xuwei 于 2009-09-20 13:57:18发表:
有试过,用别的机器 访问过吗 ? 用你的 xp ?
我就遇到过 ,自己无法访问的 vsftpd ,但别的机器都能 访问
marco.chan 于 2009-09-20 12:45:12发表:
看防火墙给开了FTP端口没!
root_bbk 于 2009-09-19 21:44:53发表:
vsftpd.conf中的所有行不能以空格开头,甚至包括注释,看你上面列出来的配置就知道了,修改去吧。学会自己分析问题才是最重要的。
Damon_lan 于 2009-08-20 10:50:55发表:
服务每次启动 没问题。但是当执行service vsftpd stop 的时候就回报错。很纳闷了
dazzye2727 于 2009-08-18 17:27:59发表:
1.检查服务器启动情况, netstat -an|grep 21看看端口开放了没有
2.先暂时关闭selinux看看