From e8694680c7a210bf2fec864aada0711c87d3b6ec Mon Sep 17 00:00:00 2001 From: ficus Date: Tue, 25 Sep 2012 19:13:41 +0200 Subject: give Tor permission to modify it's own configuration --- packages/torouter-prep/src/torouter_preboot.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/torouter-prep') 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 -- cgit v1.2.3