From: bigmike160 Date: Fri, 5 Oct 2007 14:59:20 +0000 (+0000) Subject: apache-sync-logs: Use more restictive permissions for privacy X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/6b6c39d071732804fcad8252ef19b65140f5b7cd apache-sync-logs: Use more restictive permissions for privacy --- diff --git a/apache-sync-logs b/apache-sync-logs index 2e88efd..7c1f81e 100755 --- a/apache-sync-logs +++ b/apache-sync-logs @@ -37,7 +37,7 @@ for A in $(find $LOCAL_LOG_DIR/user -mindepth 3 -maxdepth 3 -print); do rm -fr $TMP_DEST cp -a $LOG_SRC $TMP_DEST chown -R $USER $TMP_DEST - chmod -R u+rw $TMP_DEST + chmod -R u=rwX,go=X $TMP_DEST k5start -qtU -f $KEYTAB_DIR/$USER \ -- su $USER -c "rsync -a $TMP_DEST/ $LOG_DEST/" rm -fr $TMP_DEST