In our dev environment, I'm migrating some of our Apache sites to Nginx. What I'd like to do is ensure that my developers who all belong to the same group (
webgroup) have full access to the files (e.g. log files) that are created by the web server user (
www-data). The web user created files are typically owned by
www-data:www-data so I thought I'd change that user's primary group to match that of the developers (
The group change seemed to go through, but newly created files are still owned by
www-data:www-data. I don't see a
group directive for the nginx conf so I'm wondering whether there's any way to ensure that files created/updated by the nginx user get owned by the right group.
If I'd thought ahead, I suppose I could've made
www-data the primary group for all of my users, but I didn't and I'd like to avoid going back and touching all of those users. Remember, this is a dev environment so security isn't hypercritical, but I'd still like to avoid having everyone authenticate as root or something similarly wide open.
I have since tried updating my
nginx.conf file as show below, but to no avail. New files are still created as
www-data:www-data after both a restart and a force-reload.
user www-data webgroup