LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 767|回复: 4

奇怪的问题!

[复制链接]
发表于 2004-7-10 22:12:15 | 显示全部楼层 |阅读模式
问题一:用ftp localhost命令访问服务器,能连接上,但只要ls一下,立刻被服务器拒绝。
[cyx@overzero cyx]$ ftp localhost
Connected to localhost (127.0.0.1).
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [overzero.linux]
Name (localhost:cyx): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,129,117).
421 Service not available, remote server has closed connection
ftp>
而用ftp 10.114.1.1却无此问题(网卡地址是10.114.1.1)
ftp> o
(to) 10.114.1.1
Connected to 10.114.1.1 (10.114.1.1).
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [overzero.linux]
Name (10.114.1.1:cyx): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (10,114,1,1,129,122).
150 Opening ASCII mode data connection for file list
226 Transfer complete.
ftp> ls
227 Entering Passive Mode (10,114,1,1,129,124).
150 Opening ASCII mode data connection for file list
226 Transfer complete.
ftp>


问题二:在proftpd.conf文件中已指定匿名用户根目录为/date,但无法连接。我已经把/date权限设置为777。真奇怪!
[cyx@overzero cyx]$ ftp 10.114.1.1
Connected to 10.114.1.1 (10.114.1.1).
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [overzero.linux]
Name (10.114.1.1:cyx): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
530-Unable to set anonymous privileges.
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
如保持proftpd.conf里匿名用户根目录不变,就是/var/ftp,手工在/var下建立一子目录ftp,就可以正常访问。(fc2里预设ftp帐号主目录为/var/ftp)

[cyx@overzero cyx]$ ftp 10.114.1.1
Connected to 10.114.1.1 (10.114.1.1).
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [overzero.linux]
Name (10.114.1.1:cyx): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (10,114,1,1,129,207).
150 Opening ASCII mode data connection for file list
226 Transfer complete.
ftp>
何解??我想把/date设为根目录,如何改动?改/etc/passwd里的ftp帐号根目录吗?
发表于 2004-7-10 22:22:42 | 显示全部楼层
ftp有没被映射过 ? 还有ftp可能是没有list权限
 楼主| 发表于 2004-7-10 22:28:40 | 显示全部楼层

映射是什么?

一:楼上所说的映射是指链接吗?系统刚装的,没有此类的操作。
二:list权限如何取得?
 楼主| 发表于 2004-7-10 22:33:19 | 显示全部楼层
对于第一个问题,我自个想是不是防火墙的原因?但安装时并没有启用防火墙,自己都认为缺乏说服力!!
发表于 2004-7-10 23:19:00 | 显示全部楼层
默认防火墙要么开端口要么关端口,应该不是防火墙问题,要不你关掉看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表