It depends under which user your hosting provider is running the web server (or the PHP process if using FPM). Sometimes the web server runs as your user, sometimes it runs as a generic www-data/httpd user. If you have ssh access and your user can view processes, you can run:
ps aux | grep -E '(www|http|apache|php)'
(many cpanel-type hosting providers might not even let you see the list of processes)
In any case, I think it's safe to default to:
- Any files/directories with php files should be 755/644
- Other directories, where there might be uploads, cache files, logs, should be 775/664 (ex. For example: files/civicrm)
wp-content/uploads/civicrm/
.
Related questions: