Ahoj, rád bych spouštěl TOR pod zvláštním uživatelem, aby neběžel s právy roota.
Vytvořil jsem uživatele tor (uid=1002(tor) gid=1002(tor) skupiny=1002(tor),108(netdev))
Do souboru /etc/tor/torrc jsem vložil:
User 1002
ale tor nenastartuje.
když se přihlásím jako tor a zkusím spustit, tak to píše:
Jun 20 18:23:25.766 [notice] Tor v0.2.6.9 (git-145b2587d1269af4) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1f and Zlib 1.2.8.
Jun 20 18:23:25.766 [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 20 18:23:25.767 [notice] Read configuration file "/etc/tor/torrc".
Jun 20 18:23:25.770 [notice] Based on detected system memory, MaxMemInQueues is set to 2914 MB. You can override this by setting MaxMemInQueues by hand.
Jun 20 18:23:25.771 [notice] Opening Socks listener on 127.0.0.1:9050
Jun 20 18:23:25.771 [notice] Opening Control listener on 127.0.0.1:9051
Jun 20 18:23:25.771 [notice] Opening OR listener on 0.0.0.0:9001
Jun 20 18:23:25.771 [notice] Opening Directory listener on 0.0.0.0:9030
Jun 20 18:23:25.771 [warn] Error setting configured user: 1002 not found
Jun 20 18:23:25.771 [warn] Failed to parse/validate config: Problem with User value. See logs for details.
Jun 20 18:23:25.771 [err] Reading config failed--see warnings above.
/var/log/tor/log je prázdný. A to jsem i změnil přes chown vlastníka /var/log/tor/log na uživatele tor.
Co dělám špatně?
celý obsah souboru /etc/tor/torrc
ORPort 9001
DirPort 9030
ExitPolicy reject *:*
User 1002
Nickname prezdivka
#RelayBandwidthRate 10 MB
#RelayBandwidthBurst 20 MB
#AccountingStart month 1 00:00
#AccountingMax 100 GB
DisableDebuggerAttachment 0
RunAsDaemon 1
Address webova.adresa.cz
ContactInfo <muj mail>
DirPortFrontPage /var/www/html/tor.html
ControlPort 9051
HashedControlPassword nejakyhash
Sandbox 1