the existing directories should set the setgid permission that lets le new directories and files to inherit the group: find /path/to/directory -type d -exec chmod g+s '{}' \;
each user should have a uuid that allows the group to read and write
in ssh: umask 002 (instead of 0022)
in the .bashrc file
find /path/to/directory -type d -exec chmod g+s '{}' \;
umask 002
(instead of 0022) in the .bashrc file