I'm setting up a webserver for WordPress.
WordPress requires it's stuff to be owned by www user or it has problems installing plugins and themes (asks for server FTP credentials, it's stupid, I know).
This wouldn't be a problem, but I want to give one ssh user an empty WWW directory so they could download/unpack/setup WordPress themselves (hands off method).
After they download and unpack WordPress archive, all files are owned by that particular user and they have issues managing plugins/themes installation or updates for already mentioned reasons.
What would be the most convenient and safe way of achieving the both goals, letting user to feel like at home and have fully working WordPress install?
Seems setfacl could be the decent solution, to make all new stuff under one directory inherit permissions I set.
Could anyone offer hint or suggestion on how to achieve what I'm trying to or even guide me in other direction?
I'm using Nginx with PHP-FPM.
Thanks!