从 vidalia 启动 tor 时出现“无法取消链接 /var/run/tor/control:权限被拒绝”

从 vidalia 启动 tor 时出现“无法取消链接 /var/run/tor/control:权限被拒绝”

我昨天将 Tor 更新到了最新的 PPA 版本,启动 Tor 时出现了以下情况:

Jan 20 14:00:08.147 [Notice] Tor v0.2.2.16-alpha (git-61e0079ab25db6c3). This is experimental software. Do not rely on it for strong anonymity. (Running on Linux i686)
Jan 20 14:00:08.147 [Warning] ControlPort is open, but no authentication method has been configured.  This means that any program on your computer can reconfigure your Tor.  That's bad!  You should upgrade your Tor controller as soon as possible.
Jan 20 14:00:08.147 [Notice] Initialized libevent version 1.4.13-stable using method epoll. Good.
Jan 20 14:00:08.147 [Notice] Opening Socks listener on 127.0.0.1:9050
Jan 20 14:00:08.147 [Notice] Opening Control listener on 127.0.0.1:9051
Jan 20 14:00:08.148 [Notice] Opening Control listener on /var/run/tor/control
Jan 20 14:00:08.148 [Warning] Could not unlink /var/run/tor/control: Permission denied
Jan 20 14:00:08.148 [Notice] Closing partially-constructed listener Socks listener on 127.0.0.1:9050
Jan 20 14:00:08.148 [Notice] Closing partially-constructed listener Control listener on 127.0.0.1:9051
Jan 20 14:00:08.148 [Warning] Failed to parse/validate config: Failed to bind one of the listener ports.
Jan 20 14:00:08.148 [Error] Reading config failed--see warnings above.

看来问题出在这行字里:

Jan 20 14:00:08.148 [Warning] Could not unlink /var/run/tor/control: Permission 

以 root 身份运行 Vidalia 会产生以下结果:

Jan 20 20:56:08.495 [Notice] Tor v0.2.2.16-alpha (git-61e0079ab25db6c3). This is experimental software. Do not rely on it for strong anonymity. (Running on Linux i686)
Jan 20 20:56:08.506 [Warning] ControlPort is open, but no authentication method has been configured.  This means that any program on your computer can reconfigure your Tor.  That's bad!  You should upgrade your Tor controller as soon as possible.
Jan 20 20:56:08.507 [Notice] Initialized libevent version 1.4.13-stable using method epoll. Good.
Jan 20 20:56:08.507 [Notice] Opening Socks listener on 127.0.0.1:9050
Jan 20 20:56:08.507 [Notice] Opening Control listener on 127.0.0.1:9051
Jan 20 20:56:08.507 [Notice] Opening Control listener on /var/run/tor/control
Jan 20 20:56:08.507 [Warning] /home/ariyan/.tor is not owned by this user (root, 0) but by ariyan (1000). Perhaps you are running Tor as the wrong user?
Jan 20 20:56:08.508 [Warning] Failed to parse/validate config: Couldn't access/create private data directory "/home/ariyan/.tor"
Jan 20 20:56:08.508 [Error] Reading config failed--see warnings above.

奇怪的是,运行 tor demon 没有问题,而且可以正常工作!但停止它并通过 Vidalia 运行会导致这些问题!

有什么问题?我该如何解决?

谢谢

答案1

以 root 身份运行 tor(sudo ... )。如果不起作用,请提交错误报告,因为您使用的是 alpha 版本。

答案2

进入设置>高级>Tor 控制并选中使用 TCP 连接(控制端口),地址为 127.0.0.1:9051

相关内容