ZeroNet, Tor and Arch Linux

Created on 12 Jun 2016  路  11Comments  路  Source: HelloZeroNet/ZeroNet

I cannot start Zeronet with Tor on Arch Linux.
I edited /etc/tor/torrc and removed the # character from lines ControlPort 9051 and CookieAuthentication 1, then I restarted tor service.
How can I add permission for my user to read the auth cookie? The following command doesn't work:

ls -al /var/run/tor/control.authcookie

I receive the following error when I start zeronet:

TorManager Tor controller connect error: IOError: [Errno 13] Permission denied: u'/var/lib/tor/control_auth_cookie' in TorManager.py line 165

Any idea? Thanks

Most helpful comment

Bobses, you just need to read comments carefully. https://aur.archlinux.org/packages/zeronet-git

All 11 comments

use ls -al /var/lib/tor/control_auth_cookie instead then follow: https://zeronet.readthedocs.io/en/latest/faq/#how-to-make-zeronet-work-with-tor-under-linux

The answer is:

-rw------- 1 tor tor 32 Jun 12 12:11 /var/lib/tor/control_auth_cookie

I don't find the file's user group so that I add permission to my user.

You need to add ExtORPortCookieAuthFileGroupReadable 1 to tor config, usermod -a -G tor [yourlinuxuser], re-login, and restart, then it should work

Thanks, HelloZeroNet.
I tried, but doesn't work: I added ExtORPortCookieAuthFileGroupReadable 1 to /etc/tor/torrc but nothing changed.

there is an another option, please try this one: CookieAuthFileGroupReadable 0|1

I set CookieAuthFileGroupReadable to 1 in /etc/tor/torrc but nothing changed: when I start zeronet with "python2 zeronet.py --tor always" or "python2 zeronet.py" I receive the same error:

"TorManager Tor controller connect error: IOError: [Errno 13] Permission denied: u'/var/lib/tor/control_auth_cookie' in TorManager.py line 165"

The permission error come from the operating system, it not really a zeronet issue, please re-check every permission/tor logfile/tor documentation/etc.

if your linux user not able to read the /var/lib/tor/control_auth_cookie file, then zeronet wont be able to do so

Ok, thanks. I'll do that.

Bobses, you just need to read comments carefully. https://aur.archlinux.org/packages/zeronet-git

@Bobses solved ?

https://github.com/HelloZeroNet/ZeroNet#arch-linux

@HelloZeroNet Please, close.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HelloZeroNet picture HelloZeroNet  路  41Comments

0polar picture 0polar  路  57Comments

HelloZeroNet picture HelloZeroNet  路  140Comments

HelloZeroNet picture HelloZeroNet  路  58Comments

HelloZeroNet picture HelloZeroNet  路  42Comments