Hi,
I need to run Tor Browser as another user…
So here what I’m doing under, MX Linux ( Debian, SysVinit, xfce)
#as root, in a terminal under xfce
useradd --create-home --system --shell /usr/sbin/nologin TorUser
# btw --system or not ?
tar -xf tor-browser-linux...tar -C /opt --totals
chown -R TorUser:TorUser /opt/tor-browser
runuser -u TorUser -- /opt/tor-browser/start-tor-browser.desktop
return
Launching ‘./Browser/start-tor-browser --detach’…
But nothing happen, and I don’t see any process for TorUser
any ideas ?
Posted on the offical Tor-browser in June, but no reactions so far… :/
TorUser doesn’t have access to your current user’s display. You need to first give access using something like xauth or xhost.
I think that’s the issue. It’s
xhost +if I remember correctly.
I don’t use .desktop files that much… But I guess xfce is X and not wayland. Check the
DISPLAYenv var for your user and set the same in your script there or run the binary with that env var.Thanks @mumblerfish@lemmy.world I did
runuser -u TorUser -- echo $DISPLAYand I have the same value as for my other user.:0.0
I create also a “regular user” TorUser2
To see if it generate the same problems
This user have the .Xauthority file.\# as root user runuser -u TorUser2 -- /opt/tor-browser/start-tor-browser.desktopreturn Launching ‘./Browser/start-tor-browser --detach…’
andps -u TorUser2return nothing…
I’ve tried also
runuser -l TorUser2 -c '/opt/tor-browser/start-tor-browser.desktop'/usr/bin/env: ‘./Browser/execdesktop’: No such file or directory
I’m still stuck…
I wanted to report to issue to gitlab.torproject.org, to be able to do so, I had to create a account at https://anonticket.torproject.org/user/gitlab-account/create/few days, and my account is still in “pending” f*ck !
Did someone manage to run
tor-browseras another user ?



