Submit Permissions Hook

This is available via the final_script option in .submitrc, and is located at /u/isg/bin/submit/submit_permissions_hook. It simply changes the default permissions on handin directories after submit completes running to reduce the risk that course staff accidentally modify the submissions.

Name

submit_permissions_hook — Tighten file permissions on files accepted by submit

Synopsis

submit_permissions_hook

Usage

Inside of the course's /u/csXXX/.submitrc there should be the following line:

         final_script=/u/isg/bin/submit/submit_permissions_hook
      

Description

By default, submit leaves submission folders with permissions that allow course staff to modify submissions accidentally. This program will tighten file permissions, explicitly removing all world and group permissions from the submission folder and files and leaving user with no write permissions. Since RST actually duplicates the submission directory and passes a readable duplicate to its runTests script, the removal of group permissions should not impact the ability of the testing account to see the submissions.

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2016-01-11 - YiLee
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback