Hello I'm trying to setup a VPS web server account with Debian and LAMP as well as Drupal. I've gotten everything setup and the website working but I'm a little confused on how to setup FTP. I've installed Pureftp. Now my question is how do I setup a user that can access the files in /var/www/ via ftp and be secure? If I chroot the user I have on the server (ie not root) then I will not be able to write access to the files in /var/www. I've looked on the web how to setup a secure webserver and ftp and I can find docs on either or but not both. TIA
Hi, As far as i know chroot means when the user logs in via ftp he can only view/edit the files inside his home directory. Hence create a user change his home directory to /var/www and chroot him. The ftp should work fine ..
I created the user with the HOME dir as /var/www but I can't a ctually login with that user from the shell command line or from ftp. I get: No directory, logging in with HOME=/Cannot execute /opt/bin/ftponly: No such file or directory I assume I need to make /var/www and subdirectories owned by my ftpuser and group www-data. However I'm worried that it will affect the running of apache and drupal.