Hi folks, I've been fooling around with an ftp server,
and I've run into a little problem: the 'ls' command
doesn't seem to work. Take a look:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
I don't get any error messages, but I don't get a
directory listing either. What I'd like to see is
this:
dr-xr-xr-x 5 ftp root 1024 Oct 11 16:36
./
drwxr-xr-x 6 root root 1024 Oct 1 14:55
../
dr-xr-xr-x 2 root root 1024 Oct 11 16:36
bin/
dr-xr-xr-x 2 root root 1024 Oct 10 14:03
etc/
dr-xr-xr-x 2 root root 1024 Oct 10 16:26
pub/
However, if I use the command nlist, I get:
ftp> nlist
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
bin
etc
pub
226 Transfer complete.
I have copied /bin/ls into ~ftp/bin, so any ideas why
'ls' fails to list the directory contents? I'm using
Red Hat 6.0, and wu-ftp-2.5.0 is running through
inetd.
Oh, I'm just doing this as a learning experience on my
home computer, so it's not like this server is really
going to see any traffic. I'm just curious about how
this stuff works, that's all.
Thanks.
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com