anonymous ftp ?

Jonathan I. Kamens jik at athena.mit.edu
Sat Dec 29 04:31:22 AEST 1990


  I was hoping someone else would respond to your question since I can't claim
to have the first-hand knowledge necessary to answer it (I don't do a lot of
work with Suns), but I've seen the topic discussed at least a couple times
before, so I think I might be able to help.

In article <2379 at bnlux0.bnl.gov>, abrams at .dan.adm.bnl.gov (The Ancient Programmer) writes:
|> 	When I ftp in as anonymous and try to execute ls, I get the following
|> response:
|> 200 PORT command successful.
|> 150 ASCII data connection for /bin/ls (130.199.128.111,1047) (0 bytes).
|> crt0: no /usr/lib/ld.so
|> 226 ASCII Transfer complete.
|> 25 bytes received in 0.02 seconds (1.2 Kbytes/s)

  OK, you're missing the shared libraries.  This is the problem I've seen
discussed in the past.  One way to solve it is to compile an ls binary that is
statically linked.  Another way is to do what you did....

|> 	If create a ~ftp/usr/lib directory and copy /usr/lib/ls.so to it, "ls"
|> responds with:
|> 200 PORT command successful.
|> 150 ASCII data connection for /bin/ls (130.199.128.111,1049) (0 bytes).
|> crt0: no /dev/zero
|> 226 ASCII Transfer complete.
|> 20 bytes received in 0.02 seconds (0.98 Kbytes/s)

  I seem to recall that /dev/zero is Sun's version of /dev/null.  If you
create ~ftp/dev and create a "zero" device in it with the same major and minor
device numbers as the /dev/zero in your root filesystem, this problem should
go away.

|> 	I then removed ~ftp/bin altogether and tried "ls" and got:
|> 200 PORT command successful.
|> 150 ASCII data connection for /bin/ls (130.199.128.111,1050) (0 bytes).
|> 226 ASCII Transfer complete.

  Well, this is simply because there's no ls binary for ftp to run, so it
can't print a listing.

  Hope this helps.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.internals mailing list