Comments (6)
Ok, I'm not sure I quite understand.
But I got it working,
- for file /etc/tor/torrc, I added:
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
-
Added group tor to $USER.
-
Then chowned:
chown $USER:tor /var/run/tor/control.authcookie
-
Restarted tor service:
sudo systemctl restart tor
-
nyx is now run without sudo, displaying real-time information.
nyx - PC_NAME (Linux 5.xx.x-x-default) Tor 0.4.4.6 (recommended)
Relaying Disabled, Control Port (cookie): 9051
cpu: 1.9% tor, 0.4% nyx mem: 46 MB (0.3%) pid: 5430 uptime: 07:28
page 1 / 5 - m: menu, p: pause, h: page help, q: quit
Bandwidth (limit: 1 GB/s, burst: 1 GB/s):
Download (307.1 KB/sec - avg: 37.7 KB/sec): Upload (9.5 KB/sec - avg: 1.3 KB/sec):
1 MB 46 KB
969 KB 30 KB
485 KB 15 KB
12 KB 543 B
5s 10 15 20 25 30 35 5s 10 15 20 25 30 35
from nyx.
Great, glad it's working. :)
from nyx.
Path: /var/run/tor/control/var/run/tor/control.authcookie
Hi, that is certainly odd. Unless I'm missing something this can only arise if nyx believes tor is running within a chroot. Are you running FreeBSD or does your non-root user have a '~/.nyx/config' with a 'tor_chroot' field?
https://gitweb.torproject.org/nyx.git/tree/nyx/__init__.py#n383
If not, please run 'nyx --debug' with your non-root user and provide the debug output (minus anything you feel is sensitive).
Thanks!
from nyx.
Hi @atagar, thanks for the reply!
ok, so in '~/.nyx/config' I had tor_chroot with value: tor_chroot /var/run/tor/control
This was the reason for Path: /var/run/tor/control/var/run/tor/control.authcookie
Then I commented that line out, nyx -debug
, this returned
Saving a debug log to ebug, please check it for sensitive information before sharing it.
We were unable to read tor's authentication cookie...
Path: /var/run/tor/control.authcookie
Issue: Authentication failed: unable to read '/var/run/tor/control.authcookie' ([Errno 13] Permission denied: '/var/run/tor/control.authcookie')
Does this mean it's not possible to use nyx as non-root user on a root service?
from nyx.
Does this mean it's not possible to use nyx as non-root user on a root service?
Hi, it means that your authentication cookie isn't readable by your user. Tor obnoxiously requires some additional setup (#24). Please check your cookie's filesystem permissions, then adjust torrc options like CookieAuthFileGroupReadable so your nyx user can read it.
from nyx.
May I ask something although it's closed?
I'm facing the same error. Could you pls clarify what to do on step 2 Added group tor to $USER
?
In my installation, there's no group or user tor
. Should I create one or even both of them?
from nyx.
Related Issues (20)
- Nyx has glichty text if using zsh, ohmyzsh and the zshrc from kali linux with a login shell. HOT 10
- Nyx shows 2500 inbound connections and 1500 outbound, but there's almost zero traffic. HOT 2
- Needs more than two gigabyte RAM if running for two days HOT 22
- Figured you'd want to know that I've got Nyx to run natively on Windows (mostly) HOT 1
- Does Nyx modify/remove/add any files to /var/lib/tor? HOT 3
- By default Nyx cant run without sudo on Debain HOT 1
- list index out of range HOT 2
- Ubuntu 18.04 - import distutils.spawn ModuleNotFoundError: No module named 'distutils.spawn' HOT 1
- Gentoo python issues HOT 2
- Nothing in Connections tab HOT 2
- Nyx crashes when it reads a 'Log' entry from the torrc file with tabs in it. HOT 8
- Nyx incompatible with Python 3.11+ (getargspec error) HOT 4
- ipv6 addresses show no consensus data found in connections tab
- High CPU, polling frequency HOT 1
- Nyx doesn't tolerate lack of debian-tor account
- pip install nyx [RegataOS - Opensuse] HOT 2
- Dependency: Stem is unmaintained! HOT 4
- ARM64 'AttributeError' with debian-tor user HOT 1
- Space missing between PID and UPTIME (when PID > 6 digits) displayed
- FreeBSD fresh install tor and nyx, nyx fails to run
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nyx.