X11: run a gnome app as another user

flybywire picture flybywire · Jul 14, 2009 · Viewed 10.6k times · Source

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?

Answer

mykhal picture mykhal · Nov 14, 2013

xhost '+si:localuser:USERNAME'