From: mcr@csi.on.ca (Michael Richardson)
Subject: Setting up Anonymous FTP under SVR4 (Consensys 1.3)
Summary: what am I missing?
Organization: Carp Systems International, Kanata, ON
Date: Thu, 23 Jul 1992 17:11:56 GMT

  I am trying to setup anonymous FTP into a Consensys SVR4 box.
  I know basically what I need to do, and the ``Unix System V/386
Release 4 Network Users' and Administrators Guide'' confirmed it.
(Although I wouldn't have thought of /dev/tcp being a BSD person)
  However, I get no output from ls. I tried adding /lib/libc.so.1 and
also /lib/libc_s. I just tried putting /lib/ld.so.1 in too...
  I looked at etc/netconfig. /etc/netconfig has:

ticlts     tpi_clts       v     loopback        -       /dev/ticlts     /usr/lib/straddr.so
ticots     tpi_cots       v     loopback        -       /dev/ticots     /usr/lib/straddr.so
ticotsord  tpi_cots_ord   v     loopback        -       /dev/ticotsord  /usr/lib/straddr.so
tcp     tpi_cots_ord    v       inet    tcp     /dev/tcp        /usr/lib/tcpip.so,/usr/lib/resolv.so 
udp     tpi_clts        v       inet    udp     /dev/udp        /usr/lib/tcpip.so,/usr/lib/resolv.so 
rawip   tpi_raw         -       inet    -       /dev/rawip      /usr/lib/tcpip.so,/usr/lib/resolv.so 
icmp    tpi_raw         -       inet    icmp    /dev/icmp       /usr/lib/tcpip.so,/usr/lib/resolv.so 

  I pared this down to:
tcp     tpi_cots_ord    v       inet    tcp     /dev/tcp        /usr/lib/tcpip.so

  And made a copy of /usr/lib/tcpip.so.

  Do I need the whole list of protocols there? I'll probably try that
in a minute. The less the better I figure. ls-lR follows:

% cd /usr/spool/ftppub
% ls -lR
total 12
dr-xr-xr-x   2 root     other        512 Jul 22 16:29 bin
dr-xr-xr-x   2 root     other        512 Jul 22 16:24 dev
dr-xr-xr-x   2 root     other        512 Jul 22 16:11 etc
dr-xr-xr-x   2 root     other        512 Jul 23 12:59 lib
drwxrwxrwx   2 root     other        512 Jul 23 12:43 pub
d--x--x--x   4 root     other        512 Jul 23 13:04 usr

./bin:
total 26
---x--x--x   2 root     other      12304 Jul 22 16:11 ls

./dev:
total 0
crw-rw-rw-   1 root     other      9, 32 Jul 22 16:08 tcp
crw-rw-rw-   1 root     other      2,  4 Jul 22 16:24 zero

./etc:
total 6
-r--r--r--   1 root     other         23 Jul 22 16:12 group
-r--r--r--   1 root     other        200 Jul 23 13:05 netconfig
-r--r--r--   1 root     other        133 Jul 22 16:01 passwd

./lib:
total 664
-r-xr-xr-x   1 root     other      94500 Jul 23 12:59 ld.so.1
-r-xr-xr-x   1 root     other     181312 Jul 22 16:21 libc.so.1
-r-xr-xr-x   1 root     other      48042 Jul 22 16:20 libc_s

./pub:
total 0

./usr:
total 4
d--x--x--x   2 root     other        512 Jul 23 13:02 bin
d--x--x--x   2 root     other        512 Jul 23 13:05 lib

./usr/bin:
total 26
---x--x--x   2 root     other      12304 Jul 22 16:11 ls

./usr/lib:
total 28
-r--r--r--   1 root     other      13520 Jul 23 13:05 tcpip.so

  Oh -- I've tried opening the permissions all up, but that didn't
help either.
  I just get things like this for every directory:

ftp> dir
200 PORT command successful.
150 ASCII data connection for /bin/ls (192.1.2.40,1166) (0 bytes).
226 ASCII Transfer complete.
ftp> quit

  I can put and get just fine. Maybe this is a security feature :-)

-- 
  :!mcr!:	    | #include <ansi-std/disclaimer.h>  +1 613 592 5780
Michael Richardson  | WORK: mcr@csi.on.ca  HOME: mcr@sandelman.ocunix.on.ca