4146ffb
From 836960177eb961d1009cdb5fb4632592abfb3376 Mon Sep 17 00:00:00 2001
609d9b1
From: Jamie Nguyen <j@jamielinux.com>
4146ffb
Date: Thu, 7 Jan 2016 11:01:32 +0000
609d9b1
Subject: [PATCH] Add ControlSocket and CookieAuthFile to torrc
609d9b1
609d9b1
---
4146ffb
 src/config/torrc.sample.in | 6 ++++++
4146ffb
 1 file changed, 6 insertions(+)
609d9b1
609d9b1
diff --git a/src/config/torrc.sample.in b/src/config/torrc.sample.in
4146ffb
index 248cb5c..295cff4 100644
609d9b1
--- a/src/config/torrc.sample.in
609d9b1
+++ b/src/config/torrc.sample.in
4146ffb
@@ -12,6 +12,12 @@
609d9b1
 ## Tor will look for this file in various places based on your platform:
609d9b1
 ## https://www.torproject.org/docs/faq#torrc
609d9b1
 
609d9b1
+ControlSocket /run/tor/control
4146ffb
+ControlSocketsGroupWritable 1
609d9b1
+CookieAuthentication 1
609d9b1
+CookieAuthFile /run/tor/control.authcookie
4146ffb
+CookieAuthFileGroupReadable 1
609d9b1
+
609d9b1
 ## Tor opens a SOCKS proxy on port 9050 by default -- even if you don't
609d9b1
 ## configure one below. Set "SOCKSPort 0" if you plan to run Tor only
609d9b1
 ## as a relay, and not make any local application connections yourself.
609d9b1
-- 
609d9b1
2.5.0
609d9b1