Setting default group permission on a directory

Set recursive sticky bit for the group on dir

chmod -R g+s /path/to/dir

Recursively set group ownership of the directory

chown -R user:group /path/to/dir