Recently changed hosting of a website and found the upload directory of WordPress wasn't "available". I have been reading that setting folder permissions to 777 would allow everything to work fine, but I consider this a big security issue, and a future problem for sure.
The folder's (and its contents) permissions are 755, an administrative account was the owner/group of it and WordPress wasn't working properly in the Media dashboard within the web CMS.
So, I have came up with a solution, in fact the matter of my question:
Searched the user that executes the web server (NginX, Apache, Cherokee, etc...):
Assign that user as owner/group of wp_content/uploads recursively:
chmod -R username uploads/ chgrp -R username uploads/
Found a GeoIP.dat and GeoIPV6.dat files within uploads/ folder, then assign the former owner/group to those executable files.
Since that, I have been able to upload my files again through the media dashboard in the WordPress CMS without any trouble.
Is this practice safer than the 777 permissions? I mean, maybe it could be reachable through the web, sure, but since there are a couple security plugins running already, I have little concern about it.