-chmod -R o-rw ${NEWREPOS}
-chmod -R g+ws ${NEWREPOS}/db
-chmod -R g+ws ${NEWREPOS}/dav
+chmod -R o-rwx ${NEWREPOS}
+chmod -R g+wX ${NEWREPOS}/db
+chmod g+ws ${NEWREPOS}/dav
# make repos backup
mkdir -p ${REPOSBACKUP}/incremental
chgrp -R www-data ${REPOSBACKUP}
chmod -R g+ws ${REPOSBACKUP}
# make repos backup
mkdir -p ${REPOSBACKUP}/incremental
chgrp -R www-data ${REPOSBACKUP}
chmod -R g+ws ${REPOSBACKUP}