diff options
Diffstat (limited to 'config/includes.chroot')
-rwxr-xr-x | config/includes.chroot/lib/live/config/2005-tor_permissions | 15 |
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/* |