I've searched a lot and I can't find a properly answer for my case. I think it has something to do with groups, but I can't discover a solution that fits me.
So here's the deal:
I have a home server on CentOS, and I use vsftpd.
I created a user
miguel and made the default ftp location to
var/www/html/ (as I'm the only user).
The question is - I have a php script which allows everyone on the internet to upload files to my server (in this moment, they're going to a folder called
var/www/html). When I check locally the permissions of that folder, they are assigned to
apache:apache. When I access via ftp with the user
miguel I can't access/write on that folder.
How can I override all permissions, to give `miguel``, locally or via ftp, a "superaccess" permission to that folder?