WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: polipo&tor  (Read 1700 times)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
polipo&tor
« on: November 20, 2015, 08:13:37 PM »
I'm running polipo&tor combo (not as systemwide proxy but for single apps, namely firefox). I started them from bootlocal.sh, but i see they're a run as root. Now, as far as i know, at least for tor, it's not wise to run it as root.

Now, my questions are:
All what i start from bootlocal.sh is started by root? And what i start from ~/X.d./ is started by user (tc)?
If i create a user 'tor' (i checked: on slackware tor is started as its own user) how and where should i start it? (May be that's not really useful/needed since this netbook in any case is a single user machine (?) ;) ).

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: polipo&tor
« Reply #1 on: November 21, 2015, 05:59:27 AM »
X.d/stuff is started from /home/user/.profile
you can also try from bootlocal:
su -c 'tor-startup-script' username
but keep in mind tinycore doesn't try to enforce a strong security by separation between users. for example tc can always elevate to root.
when i look into my process list basically everything is run either as tc or root, which some people argue is not safe.

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: polipo&tor
« Reply #2 on: November 21, 2015, 06:57:40 AM »
Yes! And thanks for the explanation. Sometimes it comes handy, for example in the case of conky run as user which does not read the wireless values returned by iwconfig etc. I simply start it with sudo in ~/.X.d/conky and all is fine :)