LSSTDESC / DESC_DC2_imSim_Workflow

BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

checkpoint permissions problems with multi-submitting-user runs #15

Open benclifford opened 6 years ago

benclifford commented 6 years ago

checkpoints are made with permissions 600 which breaks things when other users try to use those checkpoints.

I think the original user (or root) needs to open up permissions - it can't be done by the next submitting user.

my brief investigation of why this happens for checkpoint files but not others:

checkpoints are generated by galsim. galsim makes a temp file to write the checkpoint to then renames it into place (which is good for atomicity). galsim makes that tempfile using NamedTempFile, which I understand to use unix mkstemp. mkstemp makes temp files with permissions to be readable only by the creating user (which makes sense for temp files). those permissions last all the way to the temp file eventually being renamed into the longer term checkpoints.