Centos – How to chroot a user in proftpd

centosftpproftpdvps

I installed proftpd 1.3.4e successfully. I have compiled it, and did the make install part but I want to configure it, don't know how to do so. I want when logged in to be in

/var/www/html/

I followed this tutorial:

http://www.webune.com/forums/how-to-install-proftpd-linux-centos.html

I have centos 5. Would anyone tell me how to configure it, to be working properly so I can connect using an ftp client?

Best Answer

Check out the DefaultRoot configuration parameter. With that you can modify the directory to which the user is restricted.

You have two options:

  • Set DefaultRoot to the homedir and create/modify an user so that it's home-directory is /var/www/html/
  • Set DefaultRoot to /var/www/html/
Related Topic