LINUX.ORG.RU

не работает tor на centos7

 


0

1

Nov 01 23:38:09.881 [notice] Tor 0.3.5.8 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2k-fips, Zlib 1.2.7, Liblzma N/A, and Libzstd N/A.
Nov 01 23:38:09.881 [notice] Tor can’t help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Nov 01 23:38:09.881 [notice] Read configuration file «/etc/tor/torrc».
Nov 01 23:38:09.884 [notice] Opening Socks listener on 127.0.0.1:9050
Nov 01 23:38:09.884 [notice] Opened Socks listener on 127.0.0.1:9050
Nov 01 23:38:09.885 [warn] /run/tor is not owned by this user (root, 0) but by toranon (997). Perhaps you are running Tor as the wrong user?
Nov 01 23:38:09.885 [warn] Before Tor can create a control socket in «/run/tor/control», the directory «/run/tor» needs to exist, and to be accessible only by the user and group account that is running Tor. (On some Unix systems, anybody who can list a socket can connect to it, so Tor is being careful.)
Nov 01 23:38:09.885 [notice] Closing partially-constructed Socks listener on 127.0.0.1:9050
Nov 01 23:38:09.885 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Nov 01 23:38:09.885 [err] Reading config failed–see warnings above.

systemctl status tor

tor.service - Anonymizing overlay network for TCP
Loaded: loaded (/usr/lib/systemd/system/tor.service; disabled; vendor preset: disabled)
Active: inactive (dead)

Порт 9050 не занят.

/run/tor is not owned by this user (root, 0) but by toranon (997). Perhaps you are running Tor as the wrong user?
Before Tor can create a control socket in «/run/tor/control», the directory «/run/tor» needs to exist, and to be accessible only by the user and group account that is running Tor.
Failed to parse/validate config

Zhbert ★★★★★ ()
Nov 01 23:38:09.885 [warn] /run/tor is not owned by this user (root, 0) but by toranon (997). Perhaps you are running Tor as the wrong user?
Nov 01 23:38:09.885 [warn] Before Tor can create a control socket in «/run/tor/control», the directory «/run/tor» needs to exist, and to be accessible only by the user and group account that is running Tor. (On some Unix systems, anybody who can list a socket can connect to it, so Tor is being careful.)

Тебе русским языком пишут, что пользователь не тот и /run/tor ему не доступен.

Deleted ()
Ответ на: комментарий от Deleted

Так это косяк, писать по буржуйски, что пользователь не тот, и не писать как это исправить.
toranon существует, /run/tor принадлежит toranon, где прописывать запуск демона от toranon я х.з.

yoholo ()
Ответ на: комментарий от Deleted

Не, тор сам понижает системные привилегии до пользовательских.
На самом деле в centos7 системный юнит не активирован поумолчанию.

 systemctl enable tor

решает проблему. Но без бубна хер сообразишь.

yoholo ()