 -exec_and_log "$SSH $DST_HOST chmod a+w $DST_PATH"
 +exec_and_log "$SSH $DST_HOST chmod ug+w,o-rwx $DST_PATH"
  
-diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh
-index 3127108..9ab2bf4 100755
---- a/src/mad/sh/scripts_common.sh
-+++ b/src/mad/sh/scripts_common.sh
-@@ -32,6 +32,9 @@ SED=/bin/sed
- SSH=/usr/bin/ssh
- SUDO=/usr/bin/sudo
- WGET=/usr/bin/wget
-+CURL=/usr/bin/curl
-+GUNZIP=/bin/gunzip
-+BUNZIP2=/bin/bunzip2
- 
- # Used for log messages
- SCRIPT_NAME=`basename $0`
-@@ -117,3 +120,19 @@ function timeout_exec_and_log
-         exit $CMD_CODE
-     fi
- }
-+
-+function download_and_extract
-+{
-+    URL=$1
-+    ARCHIVE=$2
-+    EXTRACT_CMD=$3
-+    HOST=$4
-+
-+    if [ "x$HOST" != "x" ]; then
-+        SSH_CMD="$SSH $HOST"
-+    fi
-+
-+    $SSH_CMD $CURL -k -o $ARCHIVE $URL
-+    $SSH_CMD $EXTRACT_CMD $ARCHIVE
-+}
-+

 
-exec_and_log "$SSH $DST_HOST chmod a+w $DST_PATH"
+exec_and_log "$SSH $DST_HOST chmod ug+w,o-rwx $DST_PATH"

diff --git a/src/tm_mad/nfs/tm_context.sh b/src/tm_mad/nfs/tm_context.sh
index b079622..ac6c2b7 100755
--- a/src/tm_mad/nfs/tm_context.sh

 
-exec_and_log "chmod a+w $DST_PATH"
+exec_and_log "chmod ug+w,o-rwx $DST_PATH"
 
diff --git a/src/tm_mad/ssh/tm_clone.sh b/src/tm_mad/ssh/tm_clone.sh
index 8507c43..216370c 100755
--- a/src/tm_mad/ssh/tm_clone.sh
+++ b/src/tm_mad/ssh/tm_clone.sh
@@ -42,17 +42,47 @@ DST_DIR=`dirname $DST_PATH`
 log "Creating directory $DST_DIR"
 exec_and_log "$SSH $DST_HOST mkdir -p $DST_DIR"
 
