TOR lässt sich in einer Installation nicht starten - in einer anderen auf der selben Maschine funktioniert es dagegen.
Hallo liebe Listenlesende,
bei mir zickt das Paket "tor" in einer von zwei Installationen.
Beide auf der gleichen Maschine, nur in unterschiedlichen Partitionen.
Beide Debian 10.4, alle aktuellen Patches installiert, das Paket "tor"
liegt beide Male in der Version 0.3.5.10-1 vor.
Die Datei "/etc/tor/torrc" ist bei beiden Installationen identisch
(SHA512-Summe identisch) und hat nur einen funktionalen Eintrag: "Log
notice file /var/log/tor/notices.log"
Funktioniert:
service tor start
[ ok ] Starting tor daemon...done.
Kaputt:
service tor start
[....] Starting tor daemon...Jun 07 21:02:06.213 [warn] Directory
/var/lib/tor cannot be read: Permission denied
Jun 07 21:02:06.215 [warn] Failed to parse/validate config: Couldn't
create private data directory "/var/lib/tor"
Jun 07 21:02:06.217 [err] Reading config failed--see warnings above.
failed.
Die Verzeichnisrechte sehen so aus:
Funktioniert:
drwxr-xr-x 1 root root 100 Jan 11 2000 /var/
drwxr-xr-x 1 root root 200 Jun 7 21:03 /var/lib/
drwx--S--- 2 debian-tor debian-tor 40 Jun 7 20:54 /var/lib/tor
Kaputt:
drwxr-xr-x 11 root root 4.0K Jun 7 18:02 /var/
drwxr-xr-x 21 root root 4.0K Jun 7 20:39 /var/lib/
drwx--S--- 3 debian-tor debian-tor 4.0K Jun 7 21:05 /var/lib/tor/
Wieso meint das Ding, dass es kein Leserecht auf /var/lib/tor hätte?
Tor wird doch unter dem Benutzer debian-tor gestartet?
Versuche ich das manuell, indem ich mich zum Benutzer debian-tor mache,
und dann tor im Vordergrund starte, dann scheint es zu funktionieren:
sudo -u debian-tor tor
Jun 07 21:10:23.828 [notice] Tor 0.3.5.10 running on Linux with Libevent
2.1.8-stable, OpenSSL 1.1.1d, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
Jun 07 21:10:23.830 [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 07 21:10:23.831 [notice] Read configuration file "/etc/tor/torrc".
Jun 07 21:10:23.879 [notice] Opening Socks listener on 127.0.0.1:9050
Jun 07 21:10:23.880 [notice] Opened Socks listener on 127.0.0.1:9050
Wie komme ich dem auf die Schliche, warum er bei der einen Installation
auf die Nase fällt? Ich habe mal versucht, in einer Shell zu überwachen,
was unter welchem user gestartet wird, wenn ich in einer anderen Shell
"service tor start" sage.
Funktioniert:
while true; do ps u -C tor --no-header ; done
root 4566 0.0 1.2 7888 3088 ? R+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 0.0 1.3 7888 3296 ? R+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 11.0 1.3 7888 3296 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4576 0.0 1.6 13924 4028 ? R+ 21:22 0:00
/usr/bin/tor --verify-config --defaults-torrc
/usr/share/tor/tor-service-defaults-torrc
root 4566 11.0 1.3 7888 3296 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4576 0.0 2.5 13924 6372 ? R+ 21:22 0:00
/usr/bin/tor --verify-config --defaults-torrc
/usr/share/tor/tor-service-defaults-torrc
root 4566 11.0 1.3 7888 3296 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4576 0.0 2.5 13924 6372 ? R+ 21:22 0:00
/usr/bin/tor --verify-config --defaults-torrc
/usr/share/tor/tor-service-defaults-torrc
root 4566 11.0 1.3 7888 3296 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4576 0.0 2.5 13924 6372 ? R+ 21:22 0:00
/usr/bin/tor --verify-config --defaults-torrc
/usr/share/tor/tor-service-defaults-torrc
root 4566 11.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 12.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 12.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 12.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 12.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 6.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 6.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 6.0 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4566 6.5 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4593 0.0 1.6 13924 4072 ? R+ 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 4566 6.5 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4593 0.0 2.5 13924 6340 ? R+ 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 4566 6.5 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4593 0.0 2.5 13924 6340 ? R+ 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 4566 6.5 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4593 0.0 2.5 13924 6340 ? R+ 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 4566 6.5 1.4 8020 3540 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
root 4593 0.0 0.0 0 0 ? R+ 21:22 0:00 [tor]
root 4598 0.0 0.0 0 0 ? Zs 21:22 0:00 [tor]
<defunct>
root 4566 4.3 1.4 8020 3552 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
debian-+ 4599 8.0 2.4 14140 6040 ? R 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 4566 4.6 1.4 8020 3552 ? S+ 21:22 0:00
/bin/bash /etc/init.d/tor start
debian-+ 4599 14.0 2.4 14272 6040 ? R 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
debian-+ 4599 19.0 2.4 14420 6040 ? R 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
debian-+ 4599 25.0 2.4 14420 6040 ? R 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
debian-+ 4599 30.0 2.5 14552 6304 ? R 21:22 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
(usw., bis ich "service tor stop" aufrufe)
Kaputt:
while true; do ps u -C tor --no-header ; done
root 3554 0.0 1.1 7756 2912 pts/2 R+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 0.0 1.2 7888 3136 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 10.0 1.2 7888 3168 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 10.0 1.2 7888 3168 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3564 0.0 2.5 13924 6400 pts/2 R+ 21:20 0:00
/usr/bin/tor --verify-config --defaults-torrc
/usr/share/tor/tor-service-defaults-torrc
root 3554 10.0 1.2 7888 3168 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3564 0.0 2.5 13924 6400 pts/2 R+ 21:20 0:00
/usr/bin/tor --verify-config --defaults-torrc
/usr/share/tor/tor-service-defaults-torrc
root 3554 10.0 1.2 7888 3168 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3564 0.0 2.5 13924 6400 pts/2 R+ 21:20 0:00
/usr/bin/tor --verify-config --defaults-torrc
/usr/share/tor/tor-service-defaults-torrc
root 3554 10.0 1.2 7888 3168 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 11.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 11.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 11.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 5.5 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 5.5 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 5.5 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 5.5 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 6.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 6.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3582 0.0 2.5 13924 6412 pts/2 R+ 21:20 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 3554 6.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3582 0.0 2.5 13924 6412 pts/2 R+ 21:20 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 3554 6.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3582 0.0 2.5 13924 6412 pts/2 R+ 21:20 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 3554 6.0 1.3 8020 3416 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3582 0.0 2.5 13924 6412 pts/2 S+ 21:20 0:00
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc
--hush
root 3554 4.3 1.3 8020 3424 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 4.6 1.3 8020 3424 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
root 3554 4.6 1.3 8020 3424 pts/2 S+ 21:20 0:00
/bin/bash /etc/init.d/tor start
Er schafft es also in der einen Installation nicht, den Benutzer zu
wechseln - aber warum?
Gruß
Stefan
Reply to: