: I have gotten FTP working, but "ls" or "dir" from the remote client doesn't
: return any listings. I have setup anonymous FTP according to ftpd.8, but
: something is missing. Perhaps it's the dynamic linking not finding the
: libraries?
: Please help, thanks.
maybe a problem with the ls-binary. do the following:
go to the anonymous-ftp directory, e.g. "cd /home/ftp"
then , go to where the ls-binary is, e.g "cd /home/ftp/bin"
then , type "ldd ./ls"
if you get an output like:
> /data2/ftp/bin
> total 16
> drwxr-xr-x 2 root root 1024 Aug 11 07:57 .
> drwxr-xr-x 6 root root 1024 Aug 11 08:01 ..
> ---x--x--x 1 root root 13252 Aug 11 07:57 ls
> /lib/libc.so.4 (Jump table 4.1)
then , check if the file /data2/ftp/lib/libc.so.4 exists.
if it does, i dont know how to solve your problem.
if it does not, you have to create this library.
- if your anon-ftp directory is on the *same* hard-disc as your
root parition is, you do *not* need to copy the shared library.
all you do is to make a hardlink, like
"ln /<whereever-libc.so-is> /home/ftp/lib/<whatever-libc.so-name-is>"
a symbolic link will not work.
a hard link will not work, if the directory is on a different harddrive
than the root parition. in that case, either copy the library or
- recompile the ls-binary (it's available in "fileutils" from MIT, i think)
with static linking.
: --
: ==============================================================================
: O | Phone: 313-845-8178 Fax: 313-59-47596 PROFS: NPROBERT | Motor
: R | Powertrain Software & Tools, Advanced Vehicle Technology (AVT) | Company
: D | Engineering Technical Center (ETC C360), Dearborn, MI 48121, USA |
: ==============================================================================
--
------------------------------------------------------------------------------
Herbert Rosmanith | fighting for peace is