From 132f33fdcd42fd9b192a58d4737792fac3d1ddf5 Mon Sep 17 00:00:00 2001 From: ficus Date: Thu, 22 Nov 2012 17:52:47 +0100 Subject: fix for tor permissions (temporary) --- .../includes.chroot/lib/live/config/2005-tor_permissions | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 config/includes.chroot/lib/live/config/2005-tor_permissions (limited to 'config/includes.chroot/lib/live') 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/* -- cgit v1.2.3