【发布时间】:2020-06-27 02:10:24
【问题描述】:
我使用google cloud shell来执行这个程序
- Linux 版本
Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
-
Tor 版本 0.3.5.10。
-
当我尝试重新启动“sudo service tor restart”Tor 时,我收到了一个错误
[ ok ] Stopping tor daemon...done (not running - there is no /run/tor/tor.pid).
[....] Starting tor daemon...Jun 27 01:51:04.132 [warn] Directory /var/lib/tor cannot be read: Permission denied
Jun 27 01:51:04.132 [warn] Failed to parse/validate config: Couldn't create private data directory "/var/lib/tor"
Jun 27 01:51:04.132 [err] Reading config failed--see warnings above.
failed.
-
所以我为 tor 目录设置了完全权限 sudo chmod -R 777 /var/lib/tor
[FAIL] Checking if tor configuration is valid ... failed! Jun 27 01:53:59.685 [notice] Tor 0.3.5.10 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8. Jun 27 01:53:59.685 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Jun 27 01:53:59.685 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc". Jun 27 01:53:59.685 [notice] Read configuration file "/etc/tor/torrc". Jun 27 01:53:59.688 [warn] Error setting groups to gid 114: "Operation not permitted". Jun 27 01:53:59.688 [warn] If you set the "User" option, you must start Tor as root. Jun 27 01:53:59.688 [warn] Failed to parse/validate config: Problem with User value. See logs for details. Jun 27 01:53:59.688 [err] Reading config failed--see warnings above. -
我使用root权限sudo su
[ ok ] 停止 tor 守护进程...完成(未运行 - 没有 /run/tor/tor.pid)。 [....] 启动 Tor 守护进程...Jun 27 01:58:58.455 [警告] 目录 /var/lib/tor 无法读取:权限被拒绝 Jun 27 01:58:58.455 [警告] 无法解析/验证配置:无法创建私有数据目录“/var/lib/tor” 6 月 27 日 01:58:58.455 [错误] 读取配置失败 - 请参阅上面的警告。
有什么方法可以帮助我解决我的问题,或者我怎样才能安装 tor 版本 2.9.14?
【问题讨论】: