[tor-bugs] #19824 [Core Tor/Tor]: /var/run/tor/control socket not created because of /var/run/tor permission issue

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Aug 3 18:32:53 UTC 2016


#19824: /var/run/tor/control socket not created because of /var/run/tor permission
issue
------------------------------+--------------------------
     Reporter:  adrelanos     |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Tor  |    Version:  Tor: 0.2.8.6
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------
 Using Tor {{{0.2.8.6}}} from deb.torproject.org,
 {{{/var/run/tor/control}}} is no longer created because of a permission
 issue. As a manual workaround, {{{sudo chmod --recursive 700
 /var/run/tor}}} works.

 The symptom in Tor's log is the following:

 {{{
 Aug 03 17:36:33.000 [warn] Permissions on directory /var/run/tor are too
 permissive.
 }}}

 Rather than {{{755}}} Tor's {{{/lib/systemd/system/tor at default.service}}}
 should use {{{700}}}. I.e. rather than using:

 {{{
 ExecStartPre=/usr/bin/install -Z -m 02755 -o debian-tor -g debian-tor -d
 /var/run/tor
 }}}

 {{{/lib/systemd/system/tor at default.service}}} should use:

 {{{
 ExecStartPre=/usr/bin/install -Z -m 02700 -o debian-tor -g debian-tor -d
 /var/run/tor
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19824>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list