aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/torouter-prep/src')
-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