ftp user and www-data
- by andrii
I have a websites that should be completely accessible for Apache(www-data user) and I have an ftp user(that has the same username on the server: user1) that should be able to update the website.
I need the user to be able to add files to the website directory, but the www-data should have a full access to the added files.
user1 is a member of www-data group.
For now when user1 uploads file to the server the file has a rights: 644, but I need 664.
How I could organise it.
Many thanks