One of our dev boxes runs debian and VSFTPD, and I would like to allow a few select users to write to /var/www/testsite
and its sub directories.
They can browse to /var/www
via a symlink in their home directories, but they can't write. It doesn't matter if it's using FTP or SFTP.
Any ideas? I find this problem difficult to google.
What are your permissions on /var/www/ and /var/www/testsite/ ?
My suggestion is to give /var/www/testsite/ a group such as testsiteGroup, make sure /var/www/testsite has rw permissions for group and then add the users to group testsiteGroup.
If you use full authentication through SFTP (you should, for accounting) then vsftpd will use user's permissions to modify files.
Because of this there are two solutions:
www-data
orwww
)/var/www
, this is much more fine-grained, but the partition needs to be mounted withacl
flagIf you use anonymous access or FTP (which is by nature insecure), I'd strongly suggest going the second route.