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的用户也是目录的所有者.

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim /etc/sysconfig/network-scripts/ifcfg-eth0 B...