I have a user called "deploy" and added that user to the group "www-data".
If I executed my PHP script directly on the command line with the deploy user, the PHP script can create a file with the owner "deploy" and the group "www-data". However, if the same script is run through a gearman manager worker, the file will have the owner "deploy", but the group is "root".
I set "deploy" as value for the user variable in /etc/init.d/gearman-manager.
I have a user called "deploy" and added that user to the group "www-data".
If I executed my PHP script directly on the command line with the deploy user, the PHP script can create a file with the owner "deploy" and the group "www-data". However, if the same script is run through a gearman manager worker, the file will have the owner "deploy", but the group is "root".
I set "deploy" as value for the user variable in /etc/init.d/gearman-manager.
Is there a bug, or am I doing something wrong?