config vsftpd for webserver

create ftp user

useradd ftpuser

passwd ftpuser

usermod -g apache ftpuser

usermod –home /var/www/html/mywebsite ftpuser

edit /etc/vsftpd/vsftpd.conf

chroot_local_user=YES

now when u login to ftp using this user it will be strricted to his home path and can write with apache permission

shenno