I recently upgraded the server to CentOS 6.2 x64, which involved backing up to another server, clean re-install with cherokee’s latest version and some other configurations. Among those, was the ftp configuration which has been made by vsftpd.
The installation is quite straight-foward, run the following in a terminal as root:
yum install vsftpd
You will need to modify a few parameters in your configuration file to get it running smoothly.
vi /etc/vsftpd/vsftpd.conf
Set the following:
anonymous_enable=NO
uncomment the following:
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chrootlist
ls_recurse_enable=YES
In this process, the user’s home directory will become FTP home directory, which is what we want really.
You need to create an ftp chroot list in /etc/vsftpd/chrootlist by:
vi /etc/vsftpd/chrootlist
Add the ftp created user in this file.
service vsftpd start