I have been trying to setup autofs for our FTP guest accounts, where guest
is in the sense of wu-ftp guestgroup.
Having setup such with NFS exported, hard mounted file systems many times,
I don't think I am a novice anymore. However, no matter what I do,
using statically linked ls or not, with freshly created dev files or not
(chmod 666 too), anytime I tried to do a dir (or even ls), the dreaded
425 Can't create data socket (0.0.0.0,20): Bad file number. message
Yes, I have all necessary dynamic libs available in the usr/lib in the
guestaccount, etc/passwd, etc/group, dev/*, and of course, a *statically
linked ls (which was verified to work using chroot on command line).
However, I could never get a directory listing. The message comes from
the ftpd.c in wu-ftpd distribution. I have hacked part of that code
already. Before I spend more time on hacking the code again, I wonder
whether there is anything I should be aware of?
Any suggestions/hints are invited. Please email or post.