ftpd and anonymous ftp

Hi.

This post seems to have come up a few times in the last few years, but has
never been successfully resolved as far as I can see.

I am trying to implement anonymous ftp using the ftpd daemon in 6.1. Using
the windows ftp program, everything works fine. Using the qnx ftp program
and running “ls”, or using ftp:// from Internet Explorer 6, I get the
following error message:

550 /bin/ls -loA: Function not implemented

I have tracked the problem down to the fact that anonymous ftp uses a
“chroot ~ftp/” environment. I believe the problem is that the ~ftp/bin/ls
program, being dynamically linked, can not find the required library files
in the chrooted environment. I have tried placing ldqnx.so.2 and libc.so*
in ~ftp/lib, ~ftp/usr/lib, ~ftp/bin and ~ftp. None of those fixed the
problem.

Where should I put which library files so that ~ftp/bin/ls can find them?
Alternately, where can I find source code for ls so I can statically link it
(the gnu fileutils do not compile in QNX), or a statically linked QNX 6.1 ls
binary?

Thanks,
Stuart Harding

Has anyone successfully implemented anonymous ftp using the 6.1 ftpd daemon?


“Stuart Harding” <stuart@intellidesign.com.au> wrote in message
news:b086lg$a28$1@inn.qnx.com

Hi.

This post seems to have come up a few times in the last few years, but has
never been successfully resolved as far as I can see.

I am trying to implement anonymous ftp using the ftpd daemon in 6.1.
Using
the windows ftp program, everything works fine. Using the qnx ftp program
and running “ls”, or using ftp:// from Internet Explorer 6, I get the
following error message:

550 /bin/ls -loA: Function not implemented

I have tracked the problem down to the fact that anonymous ftp uses a
“chroot ~ftp/” environment. I believe the problem is that the ~ftp/bin/ls
program, being dynamically linked, can not find the required library files
in the chrooted environment. I have tried placing ldqnx.so.2 and libc.so*
in ~ftp/lib, ~ftp/usr/lib, ~ftp/bin and ~ftp. None of those fixed the
problem.

Where should I put which library files so that ~ftp/bin/ls can find them?
Alternately, where can I find source code for ls so I can statically link
it
(the gnu fileutils do not compile in QNX), or a statically linked QNX 6.1
ls
binary?

Thanks,
Stuart Harding