Skip to content
Snippets Groups Projects

Remove sticky bit from the root log directory and set SGID instead to allow...

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -127,7 +127,7 @@ if [[ ! ${dry_run} ]]; then
log_dir="${outdir}/${log_name}"
mkdir -p ${log_dir}/raw
chmod 1770 ${log_dir}
chmod 2770 ${log_dir}
# tag output file with run metadata
raw_log_file=$(find ${outdir} -maxdepth 1 -name "list-${SLURM_JOBID}*" -type f | head -1)
@@ -136,7 +136,7 @@ if [[ ! ${dry_run} ]]; then
gzip ${log_dir}/raw/${log_name}
chmod 440 ${log_dir}/raw/${log_name}.gz
chmod 550 ${log_dir}/raw
chmod 1550 ${log_dir}/raw
fi
chown -R ${USER}:atlab ${log_dir}
Loading