免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1908 | 回复: 1

solaris9中的FTP服务器的问题!! [复制链接]

论坛徽章:
0
发表于 2006-04-10 11:28 |显示全部楼层
原来系统中自带的是wu-ftpd2.6.2,其服务端程序位置在/usr/sbin/in.ftpd
/etc/inetd.conf中的该ftp服务器配置为:
ftp     stream  tcp6    nowait  root    /usr/sbin/in.ftpd in.ftpd -a
/etc/services中的FTP服务配置为:
ftp-data     20/tcp
ftp              21/tcp

为测试系统,将原系统自带的wu-ftpd卸载,安装下载的wuftpd-2.6.2-sol9-sparc-local
系统安装成功,未报错误。
新的服务器端安装在/usr/local/sbin/in.ftpd
修改/etc/inetd.conf中配置为:
ftp     stream  tcp6    nowait  root    /usr/local/sbin/in.ftpd in.ftpd -a

然后用客户端登陆ftp测试,出现问题
C:\Documents and Settings\whaobi>ftp 192.168.1.6
Connected to 192.168.1.6.
220 sun-jc FTP server ready.
User (192.168.1.6none)): whaobi
331 Password required for whaobi.
Password:
230 User whaobi logged in.
ftp> ls
500 Illegal PORT Command
425 Can't build data connection: Address family not supported by protocol family
.

查了些资料后,修改/etc/inetd.conf文件为:
ftp     stream  tcp    nowait  root    /usr/local/sbin/in.ftpd in.ftpd -a
再用客户端进行测试,故障排除
C:\Documents and Settings\whaobi>ftp 192.168.1.6
Connected to 192.168.1.6.
220 sun-jc FTP server ready.
User (192.168.1.6none)): whaobi
331 Password required for whaobi.
Password:
230 User whaobi logged in.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
readme.txt
wuftpd-2.6.2-sol9-sparc-local
226 Transfer complete.

请帮忙解答下/etc/inetd.conf文件中:
ftp     stream  tcp6    nowait  root    /usr/local/sbin/in.ftpd in.ftpd -a

ftp     stream  tcp      nowait  root    /usr/local/sbin/in.ftpd in.ftpd -a
中tcp与tcp6的不同,为何会引起ftp客户端登陆出现问题。安装的同样都是wu-ftpd2.6.2服务器。谢谢!

论坛徽章:
0
发表于 2006-04-10 11:40 |显示全部楼层
#man inetd.conf
protocol
           A   recognized   protocol   listed   in    the    file
           /etc/inet/protocols. For servers capable of supporting
           TCP and UDP over IPv6, the  following  protocol  types
           are also recognized:

              o  tcp6

              o  udp6
     tcp6 and udp6 are not official protocols; accordingly,  they
     are not listed in the /etc/inet/protocols file.

     Here the inetd program uses an  AF_INET6  type  socket  end-
     point.  These  servers  can also handle incoming IPv4 client
     requests in addition to IPv6 client requests.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP