Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - ftp ls command does not return list of files: (4 Items)
   
ftp ls command does not return list of files  
I can ftp to the arm.  Everything seems to work, I can cd, even get, and put (only after setting passive), and while ls 
does return this;

ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
226 Transfer complete.

I get no list of files.

After much searching on this issue I decided to at least get current source and build the ftpd.  That in its self was a 
task, but I completed it.  However, after creating a new image and flashing it into the LPC3180, I found I get the same 
results.

Is there anything I missed?

Thank You,

Durwin
Re: ftp ls command does not return list of files  
On Wed, Apr 07, 2010 at 02:17:16PM -0400, Durwin De La Rue wrote:
> I can ftp to the arm.  Everything seems to work, I can cd, even get, and put (only after setting passive), and while 
ls does return this;
> 
> ftp> ls
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for '/bin/ls'.
> 226 Transfer complete.
> 
> I get no list of files.
> 
> After much searching on this issue I decided to at least get current source and build the ftpd.  That in its self was 
a task, but I completed it.  However, after creating a new image and flashing it into the LPC3180, I found I get the 
same results.
> 
> Is there anything I missed?
> 

- make sure you've a /bin/ls
- make sure pipe is running
- Try setting up syslogd and 'running ftpd -Dd' then
  check the syslog

Regards,

-seanb
Re: ftp ls command does not return list of files  
That was the easiest fix I have ever had in many years.

The 'ls' command was not in /bin.  After I moved it into /bin, all worked.  Now why does it not look for 'ls' through 
PATH?  And what other ftp commands do I need to move into /bin?

Thank You,

Durwin
Re: ftp ls command does not return list of files  
On Wed, Apr 07, 2010 at 02:41:54PM -0400, Durwin De La Rue wrote:
> That was the easiest fix I have ever had in many years.
> 
> The 'ls' command was not in /bin.  After I moved it into /bin, all worked.  Now why does it not look for 'ls' through 
PATH?

That could be considered a security risk.

> And what other ftp commands do I need to move into /bin?

I think that's it.