How to setup Anonymous FTP ---------------------------- 0. Become the superuser. 1. Add the pseudo-user "ftp" in /etc/passwd file with "misc" group. eg) ftp:*:5:8:anonymous ftp :/doc/ftp:noshell 2. Make an entry 'misc' in /etc/group" eg) misc:*:8:ftp 3. Create directories. % mkdir ~ftp ~ftp/{bin,dev,etc,pub,usr,usr/lib} 4. Copy /bin/ls. % cp /bin/ls ~ftp/bin 5. Copy /etc/{passwd,group}and edit them properly. % cp /etc/{passwd,group} ~ftp/etc 6. Copy the runtime loader. % cp /usr/lib/ld.so ~ftp/usr/lib/ld.so % cp /usr/lib/libdl.so.XX ~ftp/usr/lib/libdl.so.XX (XX is the version you have) 7. Create ~ftp/dev/zero used by the runtime loader. % cd ~ftp/dev % mknod zero c 3 12 8. Make a copy of the latest version of the shared C library. % cp /usr/lib/libc.so.XXX.Y ~ftp/usr/lib/libc.so.XXX.Y (XXX.Y is the latest version of your shared C library) 9. Set the permissions on the files and directories. % cd ~ftp % chown ftp . pub % chown root bin bin/ls etc etc/[pg]* \ dev dev/zero usr usr/lib usr/lib/l* % chgrp misc . pub % chgrp wheel bin bin/ls etc etc/[pg]* \ dev dev/zero usr usr/lib usr/lib/l* % chmod 111 bin/ls % chmod 444 etc/{passwd,group} % chmod 555 . bin dev etc usr usr/lib usr/lib/l* % chmod 777 pub 10. Make sure "ftpd" is in the /etc/inetd.conf file. eg) # @(#)inetd.conf 1.17 88/02/07 SMI ftp stream tcp nowait root /usr/etc/in.ftpd in.ftpd 11. Fill ~ftp/pub with goodies. Note: It is suggested to allow users read only permission (444) for /pub and make /incoming for files uploading with write permission (544)