From 40c0d8c4498b0d716f91211b1f5e97003c19e5e3 Mon Sep 17 00:00:00 2001 From: mwolson_admin Date: Wed, 3 Sep 2008 04:09:52 -0400 Subject: [PATCH] hcoop-backup: Be sure that only root can read in-progress backups. --- hcoop-backup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hcoop-backup b/hcoop-backup index d771434..2bf50f9 100755 --- a/hcoop-backup +++ b/hcoop-backup @@ -25,6 +25,7 @@ IFS=$'\n' RSYNCDIR=/vicepa/hcoop-backups/files rm -fr $RSYNCDIR mkdir -p $RSYNCDIR/$CURDATE +chmod -R og= $RSYNCDIR # Initialize backup staging area mkdir -p $BACKUPTMP @@ -163,7 +164,7 @@ tar -C /var/backups/databases/ -cf - . | \ # Update file permissions so that rsync.net can access the backups chmod -R go=,u-w $RSYNCDIR chmod u+w $RSYNCDIR -chown -R rsync $RSYNCDIR +chown -R rsync $RSYNCDIR/$CURDATE # Complain to admins if there are unknown files grep '[a-z/]' complain && \ -- 2.20.1