I have ubuntu + x11 + gnome.
I want to run a graphical application as another user.
However, when I start it from the command line using sudo -u otheruser app
I get the error "No protocol specified".
How can I work arround this?
xhost '+si:localuser:USERNAME'
Execute this command first:
$ sudo xhost +
Then run the command you want as the other user:
$ sudo -i -u username
$ command you want to run
When you are done:
$ sudo xhost -
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With