I have a site called site1 located in /var/www/site1, and it is owned by www-data user. The group permission is belong www-data group.
The web server is Apache2. The FTP server is ProFTPD.
As we allow FTP for an external user called externalftpusr to FTP in.
How do I allow this FTP user to upload/change the file accordingly to this /var/www/site1 ?
So far, we did:
sudo chmod -a -G www-data externalftpusr
When we upload a file, we have this error on FTP client: 550 index.html: Permission denied
We prefer to keep www-data as user on ownership of the site.
I am appreciated your help.
Thanks