Hello!
I want to monitor my new tor relay (set up on a raspbian pi 3 by migrating my former relay incl. keys) with nyx. When try to start nyx by "nyx" in the command line "Tor controller password" is prompted.
I can't find a password except the hashpassword in the torrc-file but that doesn't work.
I tried to set a password by "tor --hash-password <password>" but it didn't work as well.
When I start nyx with sudo it works and I can see that tor is doing well.
Any solutions?
Sent with [ProtonMail](https://protonmail.com) Secure Email.
On 04/26/2018 03:15 PM, smichel0 wrote:
Hello!
I want to monitor my new tor relay (set up on a raspbian pi 3 by migrating my former relay incl. keys) with nyx. When try to start nyx by "nyx" in the command line "Tor controller password" is prompted.
I can't find a password except the hashpassword in the torrc-file but that doesn't work.
I tried to set a password by "tor --hash-password <password>" but it didn't work as well.
When I start nyx with sudo it works and I can see that tor is doing well.
Any solutions?
Sent with ProtonMail https://protonmail.com Secure Email.
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
Look for "CookieAuthentication 1"
On 26 Apr 2018, at 23:15, smichel0 smichel0@protonmail.com wrote:
I want to monitor my new tor relay (set up on a raspbian pi 3 by migrating my former relay incl. keys) with nyx. When try to start nyx by "nyx" in the command line "Tor controller password" is prompted.
I can't find a password except the hashpassword in the torrc-file but that doesn't work.
I tried to set a password by "tor --hash-password <password>" but it didn't work as well.
When I start nyx with sudo it works and I can see that tor is doing well.
You need to add the user you run nyx as to the debian-tor group.
The instructions are here: https://trac.torproject.org/projects/tor/ticket/25890#comment:1
They should be in the Nyx FAQ or relay guide soon. I have cc'd the people who are making that change.
T
Thanks for reply! Cookieauthentication is set on 1. I did "sudo adduser $USER debian-tor". (https://trac.torproject.org/projects/tor/ticket/25890#comment:1) On Raspbian Pi the default user is pi, so I added it as user, but it didn't help. SMichel
Hello
On 27 April 2018 at 06:36, smichel0 smichel0@protonmail.com wrote:
Thanks for reply! Cookieauthentication is set on 1. I did "sudo adduser $USER debian-tor". (https://trac.torproject.org/ projects/tor/ticket/25890#comment:1) On Raspbian Pi the default user is pi, so I added it as user, but it didn't help. SMichel
Try:
sudo -u debian-tor nyx
Thanks
sudo -u debian-tor nyx
That's it! Thanks a lot!
That's not great for security, now nyx can read your tor private keys. (It probably won't, but still…)
If you add your controller to the debian-tor group, and set the appropriate options to make your cookie file group-readable, then nyx can only read those files.
I'm not sure why that isn't working for you.
Does your torrc-defaults or torrc contain: CookieAuthFileGroupReadable 1
If using a control socket: ControlPort unix:/path/to/file GroupWritable ControlPortFileGroupReadable 1
And maybe: DataDirectoryGroupReadable 1
T
tor-relays@lists.torproject.org