Installing an FTP server on CentOS 5.x
1) Login as the root user.
2) Install the FTP server software "yum install vsftpd"
3) Open the file /etc/vsftpd/vsftpd.conf with your prefered editor (i.e. nano -w /etc/vsftpd/vsftpd.conf).
4) Append to the end of the file on a new line "chroot_local_user=YES" (without the quotes).
5) To start the service run "service vsftpd start".
6) For the service to automaticaly start on reboot run "chkconfig vsftpd on".
To use the FTP server for existing accounts this is all that needs to be done.
Do the following to add an FTP only account (replacing <username> with your required username).
1) adduser -m -s /sbin/nologin <username>
2) passwd <username>