I'm using Linux Mint 18.Let's say there're several shared directories.Each directory belongs to a specific group.One of this is foo and must be shared by Pippo and Pluto so I've created the group foo and I've added Pippo and Pluto to it.All contents created inside foo and its subdirectories must be accessible to both Pippo and Pluto regardless the creator is Pippo or Pluto. The problem is that when creating a new file or directory the id group of the content is set to Pluto or Pippo(depending by whom the content has been created)and not to foo even if I've changed the group of the foo folder and its subdirectories and files to foo.
What's the way to give to new contents the group foo?
EDIT
Outside the foo folder every file created by Pippo or Pluto must have the group set respectively to Pippo and Pluto.