aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-25 19:13:41 +0200
committerficus <ficus@robocracy.org>2012-09-25 19:13:41 +0200
commite8694680c7a210bf2fec864aada0711c87d3b6ec (patch)
tree7741b550e9f20aa4ecfafc7672733b9ee59e833e /packages/torouter-prep
parent846ee52dc6b9239173565a81d4fb756e6f26285f (diff)
downloadtorouter-e8694680c7a210bf2fec864aada0711c87d3b6ec.tar.gz
torouter-e8694680c7a210bf2fec864aada0711c87d3b6ec.zip
give Tor permission to modify it's own configuration
Diffstat (limited to 'packages/torouter-prep')
-rwxr-xr-xpackages/torouter-prep/src/torouter_preboot.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/torouter-prep/src/torouter_preboot.sh b/packages/torouter-prep/src/torouter_preboot.sh
index 404ce83..8b23536 100755
--- a/packages/torouter-prep/src/torouter_preboot.sh
+++ b/packages/torouter-prep/src/torouter_preboot.sh
@@ -70,6 +70,10 @@ addgroup $ADMINGROUP
useradd -g $ADMINGROUP -G $TORADMINGROUP -s /bin/bash $ADMINUSER
# TODO: $ADMINUSER passwd?
+# give Tor permission to modify it's own configuration
+chgrp $TORADMINGROUP /etc/tor/ /etc/tor/*
+chmod g+rw /etc/tor/ /etc/tor/*
+
# Configure arm
zcat $config_dir/tmp/armrc.sample.gz > /home/$ADMINUSER/.armrc