We have some EDA software that is used by many people. As a team, we want to be able to edit and work on the same files (binary). Say, I create an electrical schematic, I save it, I simulate it. Apart from the schematic, the software creates a bunch of other files that go along the original schematic. Now how do I make the result of my work available to other users for editing? Surely I can manually use "chmod", chown" etc. but that is not a solution. It has be automatic. I created a folder under the root directory called /Projects. I gave it 777 permissions. Ok, everyone can write in that folder, but the files created by the software get assigned attributes of the user that runs the program. So, if I run the schematic program, and I save that schematic it gets saved with attributes like:
-rw-r--r-- 1 peter peter 170M Aug 4 10:22 zoom_amd64.sch
And if John creates a schematic, it gets saved with attributes like:
-rw-r--r-- 1 john john 30M Aug 4 12:22 zoom2_amd64.sch
So I cannot edit John's files, and John cannot edit my files even though, we both have r/w access to the /Project folder.
Is there a way to config that folder so people, who belong to a certain group, get to edit all the files in that folder? Users outside of the certain group shall not be able to read or write files in /Projects directory.