aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/includes.chroot/lib/live/config/2005-tor_permissions15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/includes.chroot/lib/live/config/2005-tor_permissions b/config/includes.chroot/lib/live/config/2005-tor_permissions
new file mode 100755
index 0000000..cd9c8ce
--- /dev/null
+++ b/config/includes.chroot/lib/live/config/2005-tor_permissions
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+echo " tor permissions HACK"
+# this is an UGLY UGLY HACK
+rm -rf /var/log/tor /var/lib/tor
+mkdir -p /var/log/tor
+mkdir -p /var/lib/tor
+chown debian-tor:debian-tor /var/log/tor /var/lib/tor
+chmod 600 /var/lib/tor /var/log/tor
+chmod u+x /var/lib/tor /var/log/tor
+
+chgrp debian-tor /etc/tor/ /etc/tor/*
+chmod g+rw /etc/tor/ /etc/tor/*