谁拥有/ var / log / tor日志?无法开始

时间:2016-03-15 16:22:36

标签: logging permissions tor

我编译了tor并安装了它(在raspbian上)。 我现在要做的就是用tor开始。

但我得到的只是

Mar 15 16:51:36.713 [notice] Tor v0.2.7.6 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1k and Zlib 1.2.8.
Mar 15 16:51:36.716 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Mar 15 16:51:36.718 [notice] Read configuration file "/usr/local/etc/tor/torrc".
Mar 15 16:51:36.757 [notice] Based on detected system memory, MaxMemInQueues is set to 278 MB. You can override this by setting MaxMemInQueues by hand.
Mar 15 16:51:36.774 [notice] Opening OR listener on 0.0.0.0:443
Mar 15 16:51:36.778 [notice] Opening Directory listener on 0.0.0.0:80
Mar 15 16:51:36.000 [warn] Couldn't open file for 'Log notice file /var/log/tor/notices.log': Permission denied
Mar 15 16:51:36.000 [notice] Closing partially-constructed OR listener on 0.0.0.0:443
Mar 15 16:51:36.000 [notice] Closing partially-constructed Directory listener on 0.0.0.0:80
Mar 15 16:51:36.000 [warn] Failed to parse/validate config: Failed to init Log options. See logs for details.
Mar 15 16:51:36.000 [err] Reading config failed--see warnings above.

使用sudo tor没有问题并且运行顺利但通常我没有以root身份运行。 现在我不知道如何处理日志的所有权。 当我sudo chmod 777 -R /var/log/tor运行时,但安全性较低。

root@Debian:/var/log# ls -al /usr/local/bin/tor
-rwxr-xr-x 1 debian-tor adm 2091616 Mär 15 14:58 /usr/local/bin/tor

感谢名单!

1 个答案:

答案 0 :(得分:1)

成功! :-D 我用chmod 660 *更改了日志的权限。 这是结果:

-rw-rw---- 1 debian-tor debian-tor 25124 Mär 15 20:49 notices.log

日志文件夹/ var / log / tor

drwxr-s--- 2 debian-tor debian-tor 4096 Mär 15 06:25 tor

是这样的。

Thanx drew010!

但有一个问题适合我。它是好的还是权利风险太高?