Switch from root to user = su usrname >Password. The problems start when I try and su to debian-tor. First I get a query for a password which it doesn't have. So I make a pass for debian-tor and enter it when I su to debian-tor. I enter whoami and the response is: user and not debian-tor. With or without a password it doesn't work. Secondly, if I su debia-tor > passwrd - sudo -u debian-tor nyx it produces a page and a half of pure gibberish. Sudo -i to root and enter nyx, it operates perfectly; and yes I understand I shouldn't run nyx as root.
How do I become debian-tor so I can operate my bridge correctly? Adriann
If you’re just trying to use nyx as your normal user, add your user to the debian-tor group. There is a unix control socket activated by default which is readable by the debian-tor user.
After you join the debian-tor group log out and back in, and then just:
$ nyx
-m
Il giorno 19 apr 2020, alle ore 03:54, Kathi Hilton kathihil935@gmail.com ha scritto:
Switch from root to user = su usrname >Password. The problems start when I try and su to debian-tor. First I get a query for a password which it doesn't have. So I make a pass for debian-tor and enter it when I su to debian-tor. I enter whoami and the response is: user and not debian-tor. With or without a password it doesn't work. Secondly, if I su debia-tor > passwrd - sudo -u debian-tor nyx it produces a page and a half of pure gibberish. Sudo -i to root and enter nyx, it operates perfectly; and yes I understand I shouldn't run nyx as root.
How do I become debian-tor so I can operate my bridge correctly? Adriann
-- It can't be, so therefore it isn't - stanton Friedman _______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
sudo -su debian-tor will do the trick. That will open a shell with the privileges of the specified user. The only password required is your user password for sudo.
On 2020-04-19 01:54, Kathi Hilton wrote:
Switch from root to user = su usrname >Password. The problems start when I try and su to debian-tor. First I get a query for a password which it doesn't have. So I make a pass for debian-tor and enter it when I su to debian-tor. I enter whoami and the response is: user and not debian-tor. With or without a password it doesn't work. Secondly, if I su debia-tor > passwrd - sudo -u debian-tor nyx it produces a page and a half of pure
gibberish. Sudo -i to root and enter nyx, it operates perfectly; and yes I understand I shouldn't run nyx as root.
How do I become debian-tor so I can operate my bridge correctly? Adriann
-- It can't be, so therefore it isn't - stanton Friedman _______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
Switch from root to user = su usrname >Password. The problems start when I try and su to debian-tor. First I get a query for a password which it doesn't have. So I make a pass for debian-tor and enter it when I su to debian-tor. I enter whoami and the response is: user and not debian-tor. With or without a password it doesn't work. Secondly, if I su debia-tor > passwrd - sudo -u debian-tor nyx it produces a page and a half of pure gibberish. Sudo -i to root and enter nyx, it operates perfectly; and yes I understand I shouldn't run nyx as root.
How do I become debian-tor so I can operate my bridge correctly? Adriann
-- It can't be, so therefore it isn't - stanton Friedman
Hello Kathi
You need to add your standard user to the debian-tor group. it is not necessary to set a password for the debian-tor user or to try to su to that debian-tor.
If your username is kathi then as the following one-liner should do what you need on debian:
"sudo adduser kathi debian-tor"
Then arm/nyx should fire up as the kathi user...
regards
Wang
Hi Wang! Thank you so much for your help! Why is it something so simple can be so darned complicated - lol!Sent from Samsung tablet. -------- Original message --------From: Mighty Wang wang@mighty.wang Date: 4/19/20 2:01 PM (GMT-06:00) To: tor-relays@lists.torproject.org Subject: Re: [tor-relays] Debian-tor Vs User > Switch from root to user = su usrname >Password. The problems start> when I try and su to debian-tor. First I get a query for a password which> it doesn't have. So I make a pass for debian-tor and enter it when I su to> debian-tor. I enter whoami and the response is: user and not debian-tor.> With or without a password it doesn't work. Secondly, if I su debia-tor >> passwrd - sudo -u debian-tor nyx it produces a page and a half of pure> gibberish. Sudo -i to root and enter nyx, it operates perfectly; and yes> I understand I shouldn't run nyx as root.>> How do I become debian-tor so I can operate my bridge correctly? Adriann>> -- > It can't be, so therefore it isn't - stanton FriedmanHello KathiYou need to add your standard user to the debian-tor group. it is not necessary to set a password for the debian-tor user or to try to su to that debian-tor.If your username is kathi then as the following one-liner should do what you need on debian:"sudo adduser kathi debian-tor"Then arm/nyx should fire up as the kathi user...regardsWang-- MIGHTYWANG 9B2BC7EFD661072AFADC533BE8DCF1C19D8C2DCC_______________________________________________tor-relays mailing listtor-relays@lists.torproject.orghttps://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
I literally answered the same question on tor.stackexchange.
On Sun, Apr 19, 2020 at 23:58, Mighty Wang wang@mighty.wang wrote:
Switch from root to user = su usrname >Password. The problems start when I try and su to debian-tor. First I get a query for a password which it doesn't have. So I make a pass for debian-tor and enter it when I su to debian-tor. I enter whoami and the response is: user and not debian-tor. With or without a password it doesn't work. Secondly, if I su debia-tor > passwrd - sudo -u debian-tor nyx it produces a page and a half of pure gibberish. Sudo -i to root and enter nyx, it operates perfectly; and yes I understand I shouldn't run nyx as root.
How do I become debian-tor so I can operate my bridge correctly? Adriann
-- It can't be, so therefore it isn't - stanton Friedman
Hello Kathi
You need to add your standard user to the debian-tor group. it is not necessary to set a password for the debian-tor user or to try to su to that debian-tor.
If your username is kathi then as the following one-liner should do what you need on debian:
"sudo adduser kathi debian-tor"
Then arm/nyx should fire up as the kathi user...
regards
Wang
--
MIGHTYWANG 9B2BC7EFD661072AFADC533BE8DCF1C19D8C2DCC
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
Hello Kathi
On 19/04/2020 03:54, Kathi Hilton wrote:
Switch from root to user = su usrname >Password. The problems start when I try and su to debian-tor. First I get a query for a password which it doesn't have. So I make a pass for debian-tor and enter it when I su to debian-tor. I enter whoami and the response is: user and not debian-tor. With or without a password it doesn't work. Secondly, if I su debia-tor > passwrd - sudo -u debian-tor nyx it produces a page and a half of pure gibberish. Sudo -i to root and enter nyx, it operates perfectly; and yes I understand I shouldn't run nyx as root.
How do I become debian-tor so I can operate my bridge correctly? Adriann
if you use a Debian style Linux, you can add your user to the debian-tor group to avoid the problem.
Just run: sudo usermod -a -G debian-tor $USER
(Here you can see an explaination of the command: https://explainshell.com/explain?cmd=sudo+usermod+-a+-G+debian-tor+%24USER )
This will add the user $USER to the group debian-tor, then you can log out (all instances of user $USER) and log in again and run nyx without a problem. At least that is what I do all the time for several Exits.
Regards yl
On 19.04.2020 03:54, Kathi Hilton wrote:
The problems start when I try and su to debian-tor. First I get a query for a password which it doesn't have. So I make a pass for debian-tor and enter it when I su to debian-tor.
user|group debian-tor is a system-user and login shell is set to '/bin/false'. Means: NO LOGIN ALLOWED This is for security reasons and should never be changed! ('/sbin/nologin' or '/bin/false' should not be changed for other system-user's either)
You should also delete the debian-tor password that you created in '/etc/shadow'
The entry should then look like this: debian-tor:*:18315:0:99999:7:::
tor-relays@lists.torproject.org