Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 831
    • Issues 831
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 31
    • Merge requests 31
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #19824

Closed
Open
Created Aug 03, 2016 by adrelanos@adrelanos

/var/run/tor/control socket not created because of /var/run/tor permission issue

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@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@default.service should use:

ExecStartPre=/usr/bin/install -Z -m 02700 -o debian-tor -g debian-tor -d /var/run/tor
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking