Debian 6: setting up FTP just for website editing
- by David Oliver
I have a VPS using Debian 6.0. Currently, SSH is set to not accept password logins, and only key-based ones.
A person who needs to work on one particular website (a vhost) wishes to use FTP. He doesn't need/want SSH. How can I set up FTP access for him, enabling him to have write permissions for all files in the relevant directory, and only the relevant directory? The directory is /srv/www/domainname.com/public_html
Currently, all directories and files in that directory belong to www-data:www-data and are 644/755.
I've installed vsftpd and have been reading some guides, but they all seem to deal with allowing multiple users to have their own user-named directories which isn't what I'm after. I can't seem to work out how to simply define one FTP user with a password that has access to one directory of my choosing.
This is my first experience of setting up an FTP server.
Thanks.
Edit: have also found this - maybe I should be using ProFTPd, or can vsftpd also do what I want?