Skip to content
Snippets Groups Projects
Commit e71c737e authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

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

Remove sticky bit from the root log directory and set SGID instead to allow directories and files to inherit group assignment. Assign sticky bit to 'raw' subdirectory to further prevent anyone from deleting the raw log file
parent d82debf0
No related branches found
No related tags found
2 merge requests!24Release v0.2.0,!23Remove sticky bit from the root log directory and set SGID instead to allow...
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment