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
sudo -u otheruser
gksu -u -c
Replace with the username to run the command as, and > with the command you want to run. Remember that the program will be run in the s context, but in the current directory.
> with the command you want to run. Remember that the program will be run in the s context, but in the current directory.
In the popping up window, enter the password of the target of course.