diff options
-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/* |