diff options
author | ficus <ficus@robocracy.org> | 2012-09-25 19:13:41 +0200 |
---|---|---|
committer | ficus <ficus@robocracy.org> | 2012-09-25 19:13:41 +0200 |
commit | e8694680c7a210bf2fec864aada0711c87d3b6ec (patch) | |
tree | 7741b550e9f20aa4ecfafc7672733b9ee59e833e /packages | |
parent | 846ee52dc6b9239173565a81d4fb756e6f26285f (diff) | |
download | torouter-e8694680c7a210bf2fec864aada0711c87d3b6ec.tar.gz torouter-e8694680c7a210bf2fec864aada0711c87d3b6ec.zip |
give Tor permission to modify it's own configuration
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/torouter-prep/src/torouter_preboot.sh | 4 |
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 |