Read the man page ftpd(8) in the SunOS 4.x documentation, as
the procedure differs from vanilla BSD and most examples in
system administration books.
The "ls" binary is dynamically linked, requiring you to
duplicate ld.so, libc.so.* and /dev/zero in the ftp area.
The permissions and ownership of the files within the
ftp area are critical to having a secure configuration.
Note: For SunOS versions 4.1.2 and 4.1.3 you will need
to copy /usr/lib/libdl.so.* to the ftp area as well.
You can use a "statically" linked binary from the GNU
fileutils instead of the "dynamically" linked SunOS
version. You can get the GNU fileutils from prep.ai.mit.edu
in the directory /pub/gnu
There is also a statically linked version of ls for Suns
running SunOS 4.1.x, available via anonymous ftp from
ftp.ececs.uc.edu. Get the file /pub/sun-faq/ls.statically-linked
or get it from the SunOS install CD in the "tools" directory.
A complete procedure to setup anonymous under SunOS is
available via anonymous ftp to ftp.ececs.uc.edu. Get
the file /pub/sun-faq/anon-ftp.how-to.
There is an _excellent_ script written by Peter N. Lewis
(peter.lewis@info.curtin.edu.au) for setting up anonymous ftp
located on ftp.ececs.uc.edu, in the file /pub/sun-faq/anon-ftp.scrpt