Problem
The ls and dir commands don't work on my anonymous ftp server.
Cause
When accessing the "ftp" account, using anonymous ftp, the
system makes a chroot call to keep the user from accessing
files outside the ftp home directory. Because of this
restriction, certain programs must be put in the ftp home
directory.The information given in the printed manual, SCO OpenServer
Networking Guide, is not correct. It excludes the
/lib/libprot.so.1 library. This is one of several libraries
necessary for the ls command to function properly in anonymous
ftp. Solution
The script in the online documentation is correct. To solve
this problem, take these steps:1. Log in as root.2. Create a user called "ftp" with the Account Manager. Do not give that user a password.
3. Create the following directory setup in ftp's home directory:
# csh
# cd ~ftp
# chmod 755 .; chown root .; chgrp root .
# mkdir bin dev etc lib pub usr usr/lib
# chown root bin etc dev lib usr usr/lib
# chmod 555 bin etc dev lib usr usr/lib
# chown ftp pub
# chmod 777 pub
# cd bin
# cp /bin/ls .
# chmod 111 ls
# cd ../etc
# cp /etc/passwd .
# cp /etc/group .
# chmod 444 passwd group
# cd ../lib
# cp /lib/libprot.so.1 .
# chmod 555 lib*
# chown bin lib*
# cd ../usr/lib
# cp /usr/lib/libc.so.1 .
# cp /usr/lib/libsocket.so.1 .
# chmod 555 lib*
# chown bin lib*
# cd ../..
# find /dev/socksys -print | cpio -dumpv ~ftp
# find /dev/zero -print | cpio -dumpv ~ftp See also
Networking Guide Chapter 3, Administering TCP/IP