Setting up Anonymous FTP

This is easiest done using the graphical Xwindows, and logged in as user root.

Begin by launching the Account Manager. Add a user named ftp. Responses to questions are as follows :

Login	: ftp

Userid	: (whatever it plugs in for next user is fine)

Comment	: Anonymous FTP Login

Login Shell	: /bin/false

Networked Via	: (will be grayed out - N/A)

Home Directory	: /usr/ftp

Login Group	: nogroup

Accept these options and the system will add the user. Then while the Account Manager is still up, highlight the ftp user if it is not already selected and from the menu, choose :

Users/Password Restrictions/Selection

Now make sure that the password required field is set to no. The defaults for the rest will be fine.

Now exit the Account Manager and launch a unix shell. Do the following :

Note that I found it easier to make a sybolic link to a home directory instead of constantly referencing the usr directory. That is done by typing "ln -s /usr /home" this will actually create the symbolic link home for you.

cd /home/ftp

su ftp

mkdir bin

mkdir etc

mkdir pub

cp /bin/ls /home/ftp/bin

cp /etc/passwd /home/ftp/etc

cp /etc/group /home/ftp/etc

chmod /home/ftp/bin/ls 111

Now edit the /home/ftp/etc/passwd file so that the only id's that are in the file are : root, daemon, uucp, ftp.

All files that will be ftp'd will be located in or under the /home/ftp/pub directory.