奇怪的问题!

由 zjracyx 在 07-10-2004 22:12 发表:

奇怪的问题!

问题一:用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帐号根目录吗?


机器配置:

赛杨550(overlock)

技嘉6BXC 440BX

TNT2-M64

256M HY

MAG 700e

/dev/hda1 4.7G /

/dev/hda6 3.0G /date

OS:FC2


由 Snoopy 在 07-10-2004 22:22 发表:


ftp有没被映射过 ? 还有ftp可能是没有list权限


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 zjracyx 在 07-10-2004 22:28 发表:


Published At
Categories with 服务器类
Tagged with
comments powered by Disqus