wu-ftpd ls 無法顯示目錄
os:solaris 8
wu-ftpd-2.6.2
執行ls時,或用客戶軟體登陸時看不到目錄。除非執行 ls -l。
$ ftp localhost
Connected to localhost.
220 yanshi FTP server (Version wu-2.6.2(1) Wed Aug 6 08:40:01 EDT 2003) ready.
Name (localhost:jxie): channel
331 Password required for channel.
Password:
230 User channel logged in.
ftp> pwd
257 "/" is current directory.
ftp> ls
200 PORT command successful.
550 No files found.
ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
總數 8
drwxr-xr-x 2 root other 512 4月 7 17:25 bin
drwxr-xr-x 2 root other 512 4月 7 17:27 dev
drwxr-xr-x 2 root other 512 4月 7 17:25 etc
drwxr-xr-x 4 root other 1024 4月 7 17:32 usr
226 Transfer complete.
remote: -l
248 bytes received in 0.058 seconds (4.18 Kbytes/s)
請大俠幫忙看看如何解決。謝過!
《解決方案》
哎,一年多了,都沒人回復,我也遇到這樣的問題,幫頂一下,希望好心人能幫忙解決
《解決方案》
wuftpd就是這樣設計的?
http://www.linuxselfhelp.com/wu-ftpd/Frequently%20Asked%20Questions%20about%20wu-ftpd.html#QA85
Some ftp clients improperly use the NLST and LIST commands. NLST was intended to show files only for retrieval using the mget command. LIST was intended to show everything in human-readable form. Earlier versions of WU-FTPD did not correctly interpret the RFC which defines these commands and many ftp clients were written incorrectly and do not use the definitions in the RFC. Starting WU-FTPD 2.6.0, the interpretation of NLST versus LIST ftp commands has been changed to what is the right interpretation. NLST lists retrievable files for the ftp mget command, LIST lists all files for a human reader. Suggested fix: fix the client software, or train the users to use ls -l (or dir) in a command-line client to get a listing of the files and directories.
《解決方案》
原帖由 wolfg 於 2009-9-10 17:42 發表 http://bbs3.chinaunix.net/images/common/back.gif
wuftpd就是這樣設計的?
http://www.linuxselfhelp.com/wu-ftpd/Frequently%20Asked%20Questions%20about%20wu-ftpd.html#QA85
謝謝
《解決方案》
原來是這樣的啊