Managing users and group ownership and permissions
I am running a server running apache. I have created a directory for a website /websites/website01. All files in here must be owned by www-data. However, I wanted to allow some other users to edit and create files in this directory, so I created a group 'customer01-data', let's say. I changed ownership of all the files so that group ownership is 'customer01-data' and in this group user01, user02, user03 are members. This is fine and they are able to edit files so long as the file permissions are set right. However, when they create a new file, it defaults to being owned by user01:user01 and they are unable to change that. Is there a better way to handle this scenario? I did look at previous threads and did not see - though there was so much it is possible I missed something.