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 | |
parent | 1b789097162793b3f57f5abbc0af313fce1dc2cf (diff) | |
download | torouter-live-132f33fdcd42fd9b192a58d4737792fac3d1ddf5.tar.gz torouter-live-132f33fdcd42fd9b192a58d4737792fac3d1ddf5.zip |
fix for tor permissions (temporary)
-rw-r--r-- | TODO | 5 | ||||
-rwxr-xr-x | config/includes.chroot/lib/live/config/2005-tor_permissions | 15 |
2 files changed, 16 insertions, 4 deletions
@@ -1,8 +1,4 @@ - ROOT PASSSWORD IS "CRUD" AND REMOTE SSH IS ALLOWED -- tor permissions: - - chown debian-tor:debian-tor /var/log/tor /var/lib/tor - - chgrp debian-tor /etc/tor/ /etc/tor/* - - chmod g+rw /etc/tor/ /etc/tor/* - test persistance - uap hacks as a debian package - create m-a source package @@ -14,6 +10,7 @@ - remove torouter /etc/hosts listing TBD: +- real tor permissions fix - remove "auto uap0" from /etc/network/interfaces - persistant setuid issue - determine which configurations can be settled using debconf preseeds 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/* |