I have my WordPress site newly hosted on a small Linux box with Nginx. Nginx runs as the user www-data just like apache, so I have the entire public_html directory owned by www-data so that WordPress can upload media files, install new plugins, etc.
My question is how can I setup the public_html directory so that a user logged in via SFTP can upload or edit files? I tried doing
chown -R myUserName:www-data public_html
but that didn't work.