ftp> /bin/ls: Function not implemented

There seems to be a problem with the path when using ftpd. I am trying to access the QNX computer over ftp. If I use some ftp program, it can’t read the directory. If I do on the QNX machine:

# ftp localhost
...login as ftp...
ftp> ls
200 PORT command successful.
550 /bin/ls: Bad file descriptor.
ftp> ls
200 PORT command successful.
550 /bin/ls: Function not implemented

It is not only ls that has a problem. Can’t find any info on this problem.

I had this problem a while ago. I’m pretty sure that to fix the problem, I had to put /bin/ls in /usr/ftp/bin. You would want to make that ls executable by all but not read or writeable.

There is no /usr/ftp/bin directory.

User “ftp” is a special user for anonymous ftp.

The ftpd page in utility document here (qnx.com/developers/docs/6.3. … /ftpd.html) has a session called “Setting up a restricted ftp subtree”.

You need to follow those steps.

If this is not your intension, create your own user (no, root is not a good choice), with password, and try it.

I know this is an old post, but thought it could help, in my case, i get this error when the pipe goes down (/sbin/pipe)