Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.internals Subject: Re: anonymous ftp ? Message-ID: <1990Dec28.173122.6421@athena.mit.edu> Date: 28 Dec 90 17:31:22 GMT References: <2379@bnlux0.bnl.gov> Sender: news@athena.mit.edu (News system) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 47 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@bnlux0.bnl.gov>, abrams@.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@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710