aboutsummaryrefslogtreecommitdiffstats
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
parent846ee52dc6b9239173565a81d4fb756e6f26285f (diff)
downloadtorouter-e8694680c7a210bf2fec864aada0711c87d3b6ec.zip
torouter-e8694680c7a210bf2fec864aada0711c87d3b6ec.tar.gz
give Tor permission to modify it's own configuration
-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