Each time you create a file or upload it via FTP, considering your user is "myuser", it's chwon would be "myuser" for user and "myuser" for group. So you have to manually execute chown
command to change the group ownership to lets say apache.
I'm constantly uploading project files to my development server, and I have to manually chown
those files to the a group that apache and myuser belongs to, so that they can be executed.
Is there a way to make this files I upload or create automatically belong to an specific group (lets say "www-data"), so that I dont have to chown em manually? If so, guide me please as I am no expert in linux, I'm like intermediate.
PS: Using CentOS 6.5