I have a VPS and I have to upload files my web application by SFTP connections.
I ofter have probems with permissions, when I upload files I have always to force a chown
to move all my uploads to www-data user and group, to let apache handle it.
Is this the common way to do so? I don't think to set www-data as primary group is a good idea (my user do many other things a part of uploading file in www folder!).