[tor-relays] Wrong mode on /var/run/tor

Peter Palfrader weasel at torproject.org
Wed Aug 31 12:33:07 UTC 2016


On Wed, 31 Aug 2016, Alexander Dietrich wrote:

> Hello,
> 
> I just had a tor instance exit with these error messages:
> 
> [warn] Failed to parse/validate config: Failed to bind one of the listener
> ports.
> [err] Reading config failed--see warnings above. For usage, try -h.
> [warn] Restart failed (config error?). Exiting.
> 
> Above that, the log contains an endless stream of these errors:
> 
> [warn] Permissions on directory /var/run/tor are too permissive.
> [warn] Before Tor can create a control socket in "/var/run/tor/control", the
> directory "/var/run/tor" needs to exist, and to be accessible only by the
> user and group account that is running Tor.  (On some Unix systems, anybody
> who can list a socket can connect to it, so Tor is being careful.)
> 
> When I checked, the /var/run/tor directory had the mode "rwxr-sr-x". After
> removing the permissions for "other", tor started without problems.

This most likely means that you have a non-standard control socket
configuration.  The package should have this:

/usr/share/tor/tor-service-defaults-torrc:ControlSocket /var/run/tor/control GroupWritable RelaxDirModeCheck
/usr/share/tor/tor-service-defaults-torrc:ControlSocketsGroupWritable 1

Did you set ControlSocket elsewhere?

-- 
                            |  .''`.       ** Debian **
      Peter Palfrader       | : :' :      The  universal
 https://www.palfrader.org/ | `. `'      Operating System
                            |   `-    https://www.debian.org/


More information about the tor-relays mailing list