On my MAC, my webserver is
So if I want to set my webserver to be my group, I can just write:
sudo chown -R my-username:_www .
When I SSH'ed into my shared hosting, I think my "webserver" might be "nobody"
drwxr-x--- 23 my-username nobody 4096 Apr 20 13:10 public_html/
Inside my public_html web folder, it looks like my group is the same as my username, i.e.
drwxr-xr-x 2 my-username my-username 4096 Apr 18 14:45 config/
If I want to make files readable and writeable by my webserver (like say, my "files" or "upload" folder) on shared hosting, should I just leave everything as it and set my folder to 755??