summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Colin2016-03-06 20:57:05 -0500
committerAlexei Colin2016-03-06 20:57:35 -0500
commitf2535f8bd55e7ef607fc84798f321900fb60d60b (patch)
tree91716ab116767915b84acd27279ce76bfb309ee9
parent1d9d9be04ea0bb48b6dd503855b2c5eb480ecf89 (diff)
downloadaur-f2535f8bd55e7ef607fc84798f321900fb60d60b.tar.gz
better instructions for Tor control auth
Persist across Tor restarts.
-rw-r--r--zeronet.install7
1 files changed, 6 insertions, 1 deletions
diff --git a/zeronet.install b/zeronet.install
index e78d285d9802..e52190a1083e 100644
--- a/zeronet.install
+++ b/zeronet.install
@@ -8,7 +8,12 @@ post_install() {
# Don't run thesre operations automatically, because they are security-sensitive
echo ">>> Default mode is clearnet+Tor. Give zeronet permissions to configure hidden service:"
echo ">>> sudo usermod -a -G tor zeronet"
- echo ">>> sudo chmod g+x /var/lib/tor && sudo chmod g+r /var/lib/tor/control_auth_cookie"
+ echo ">>> sudo mkdir -m 750 /var/run/tor && sudo chown tor:tor /var/run/tor"
+ echo ">>> Add/edit the following options in /etc/tor/torrc:"
+ echo ">>> CookieAuth 1"
+ echo ">>> CookieAuthentication 1"
+ echo ">>> CookieAuthFileGroupReadable 1"
+ echo ">>> CookieAuthFile /var/run/tor/control_auth_cookie"
echo ">>> Run daemon and check status:"
echo ">>> sudo systemctl start zeronet"
echo ">>> sudo systemctl status zeronet"