centos – 我的职责有什么问题?

前端之家收集整理的这篇文章主要介绍了centos – 我的职责有什么问题?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我是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.

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

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.
Permissions on directory /var/lib/tor/hidden_service are too permissive.

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

chmod 700 /var/lib/tor/hidden_service

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

猜你在找的CentOS相关文章