FTP works, but "ls" or "dir" doesn't ???

FTP works, but "ls" or "dir" doesn't ???

Post by Neal Probe » Sat, 21 Jan 1995 00:51:35



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.

--
==============================================================================

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 |
==============================================================================

 
 
 

FTP works, but "ls" or "dir" doesn't ???

Post by Benjamin I. Willia » Sun, 22 Jan 1995 01:18:03



> 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.

ok.  Go to the ftp server.  look in /home/ftp (or wherever you choose to
store your ftp directory.  There SHOULD be a bin directory.  and in the
/home/ftp/bin there SHOULD be an "ls" program.  If it isn't there, that is
your problem.  If it IS there, then that isn't your problem.  If you don't
have it, you can download it from almost any ftp site (make sure it is
a linux binary.  If you don't feel like looking, i'll give you mine.

Ben

> --
> ==============================================================================

> 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 |
> ==============================================================================


--

---- ,~. ----------------------------------------------------------------
     | /    Benjamin I. Williams [] The University of Illinois

    /|                           [] -------------------------------------
  /',|-.    Studying:            []
 | |_|, )    Music Composition   [] Don't waste your computer. Use Linux.
 `\__|_/'    Computer Science    [] Linux + Xfree + Motif = Power.
--  ,'  -----------------------------------------------------------------

 
 
 

FTP works, but "ls" or "dir" doesn't ???

Post by Matt Web » Sun, 22 Jan 1995 02:19:46


: 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.

I had a problem which sounds similar to this.  I have a slip connection to
a company server.  I could ftp to a remote site and got the usual readme
message after I signed on.  However, an ls (or dir) or get would lock to
connection.  It turns out that due to firewalling and the strange ftpd on
the company server I had to use an ftp client with a "passive mode".  I
know that ncftp did not work (or I didn't know enough about the subject to
make it work).  I was able to get a passive ftp client locally.  I don't
know of one publicly available for Linux.  At least this might help you to
look for the right solution even if I can't tell you where to get it.

--
#########################################################################

CSC Consulting  Ph: (513) 768-4440, FAX: (513) 768-4446
255 East Fifth St. 27th Floor
Cincinnati, Ohio 45202

 
 
 

FTP works, but "ls" or "dir" doesn't ???

Post by Herbert Rosmani » Mon, 30 Jan 1995 15:54:55


: 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