From 8fb80564dd6ef16b39f008e356170a0922b923f3 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Jul 2019 12:57:15 -0600 Subject: [PATCH] fix incorrect permission assignment on tmp dir --- pilerbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilerbackup.sh b/pilerbackup.sh index f657072..feb76e7 100644 --- a/pilerbackup.sh +++ b/pilerbackup.sh @@ -390,7 +390,7 @@ if ! exportDir=$( mktemp -d 2>>"$logFile" ); then exitError 111 "Could not create temporary directory for exported EML files" fi # grant pilerUser permission to write to temporary directory -if ! chown root:${pilerUser} "$exportDir" && chmod 660 "$exportDir"; then +if ! chown root:${pilerUser} "$exportDir" && chmod 770 "$exportDir"; then exitError 112 "Could not set permissions on temporary directory" fi if ! cd "$exportDir"; then