need some help on tor and privoxy

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

need some help on tor and privoxy

Post by jsfarinet »

I installed tor and privoxy (which i am used since years to use on any installation i had).

Now, i have 2 questions:

1) How do i add both processes to be started automatically as systemwide services (by hand it's easy: 'sudo service start <servicename>').
2) I've a problem with tor, which does not want to start. In the terminal i get the following msg:

Code: Select all

Starte den tor Systemdienst
Raising maximum number of filedescriptors (ulimit -n) to 32768...
Starting Tor...
Nov 17 17:47:50.311 [notice] Tor v0.2.8.6 running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2j and Zlib 1.2.8.
Nov 17 17:47:50.311 [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 17 17:47:50.311 [notice] Read configuration file "/etc/tor/torrc".
Nov 17 17:47:50.317 [notice] Opening Socks listener on 127.0.0.1:9050
Nov 17 17:47:50.318 [warn] Error setting configured user: tor not found
Nov 17 17:47:50.318 [warn] Failed to parse/validate config: Problem with User value. See logs for details.
Nov 17 17:47:50.318 [err] Reading config failed--see warnings above.
In /var/log/tor there is no log file. Especially, what does the following line mean:

Code: Select all

Nov 17 17:47:50.318 [warn] Error setting configured user: tor not found
??

In /etc/torrc i find this:

Code: Select all

## This is a custom Slackware torrc. The original Tor Project torrc file is
## still available as /etc/torrc/torrc.sample
And

Code: Select all

## On startup, setuid to this user and setgid to their primary group.
User tor
Now, the user tor apparently does not exist (according to the graphical user tool of mate). Moreover, it's strange, the slackware torrc file is based on: "16 July 2009 for Tor 0.2.2.1-alpha" while the tor torrc file is from "Last updated 22 September 2015 for Tor 0.2.7.3-alpha" (btw, not that enormous problem, since tor handles most settings defaultwise ;) ). When i use the tor default torrc i can start tor. But i wonder why the slack version sets a user tor (?) (I've confidence in the coherence of slackware and all his filiations, so, i try to understand ... In my, linuxwise, simple mind, the only thing i can imagine is, that in this way tor is not run as superuser and therefore administration could be done by all who belong to the group tor (???)

In debian there were no problems at all to start debian as a service. In Manjaro OpenRC i had to change the rights, but then it worked out of the box.

Thanks a lot for any pointer!
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: need some help on tor and privoxy

Post by mimosa »

Have a look here:

https://www.slackbuilds.org/repository/ ... twork/tor/

However, with a sensitive security application such as tor, SBo may not be your best bet. In particular, you will want to keep it regularly updated. I'm afraid I'm not quailified to advise in detail, but someone here surely is.
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: need some help on tor and privoxy

Post by jsfarinet »

Thanks a lot. Excellent pointer :)
Post Reply