diff options
author | ficus <ficus@robocracy.org> | 2012-11-22 17:52:47 +0100 |
---|---|---|
committer | ficus <ficus@robocracy.org> | 2012-11-22 17:52:47 +0100 |
commit | 132f33fdcd42fd9b192a58d4737792fac3d1ddf5 (patch) | |
tree | 64439b4318d0e32c5cd334a7d0c7a75afd8052da /config | |
parent | 1b789097162793b3f57f5abbc0af313fce1dc2cf (diff) | |
download | torouter-live-132f33fdcd42fd9b192a58d4737792fac3d1ddf5.tar.gz torouter-live-132f33fdcd42fd9b192a58d4737792fac3d1ddf5.zip |
fix for tor permissions (temporary)
Diffstat (limited to 'config')
-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/* |