diff --git a/nbgrader/exchange/release_feedback.py b/nbgrader/exchange/release_feedback.py index 13403f227..2fe300be6 100644 --- a/nbgrader/exchange/release_feedback.py +++ b/nbgrader/exchange/release_feedback.py @@ -1,7 +1,7 @@ import os import shutil import glob -from stat import S_IRUSR, S_IWUSR, S_IXUSR, S_IXGRP, S_IXOTH +from stat import S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IXOTH, S_ISGID from .exchange import Exchange from ..utils import notebook_hash @@ -22,7 +22,7 @@ def init_dest(self): # 0755 self.ensure_directory( self.outbound_feedback_path, - S_IRUSR | S_IWUSR | S_IXUSR | S_IXGRP | S_IXOTH + S_IRUSR | S_IWUSR | S_IXUSR | S_IXGRP | S_IXOTH | ((S_IRGRP|S_IWGRP|S_ISGID) if self.coursedir.groupshared else 0) ) def copy_files(self):