I'd like for the ownership of all the files on my site to stay as follows:
sudo chown -R www-data:www-data /var/www/example.com/public_html
But I need to change the files with another user, so I did the following to set ACLs:
setfacl -Rdm u:sampleuser:rwx /var/www/example.com/public_html
But now, if I upload a new file, that file is owned by sampleuser, not www-data.
Is there any way to keep it as www-data for all files/directories even after I add new files with sampleuser?
I'm running Ubuntu 18.04.