我的TOR出了什么问题?

时间:2015-07-24 22:34:02

标签: centos tor

我是darkness.su上的XMPP服务器的运营商。服务器在Centos 6上运行。

我安装了TOR并将其配置为提供对服务器的隐藏服务访问。它一开始工作正常,但自从几个月前更新以来它开始给我这些错误:

    799  May 25 14:19:37.060 [warn] Permissions on directory /var/lib/tor/hidden_service are too permissive.
  800  May 25 14:19:37.060 [warn] Failed to parse/validate config: Failed to configure rendezvous options. See logs for details.
  801  May 25 14:19:37.060 [err] Reading config failed--see warnings above.

我试图检查日志,但我找不到它们,设置一个似乎不起作用。我尝试删除TOR并擦除其所有文件夹,然后重新安装它。。事。

我正在从TOR Project的存储库安装yum。

在隐藏的服务目录(由TOR拥有)上使用chmod 700:

Jul 24 21:39:05.573 [warn] Directory /var/lib/tor/hidden_service/ cannot be read: Permission denied
Jul 24 21:39:05.573 [warn] Failed to parse/validate config: Failed to configure rendezvous options. See logs for details.
Jul 24 21:39:05.573 [err] Reading config failed--see warnings above

将目录所有者更改为root后:

Jul 24 22:11:36.236 [warn] /var/lib/tor/hidden_service/ is not owned by this user (_tor, 496) but by root (0). Perhaps you are running Tor as the wrong user?
Jul 24 22:11:36.236 [warn] Failed to parse/validate config: Failed to configure rendezvous options. See logs for details.
Jul 24 22:11:36.236 [err] Reading config failed--see warnings above.

1 个答案:

答案 0 :(得分:13)

Permissions on directory /var/lib/tor/hidden_service are too permissive.

这意味着,有太多用户可以访问此目录。尝试改变它:

chmod 700 /var/lib/tor/hidden_service

我在此假设运行TOR的用户也是目录的所有者。