Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to run an application using only GUI as a different user. Not root. I want the user to be presented with a dropdown of system users, select one, enter the password, and the app gets run as that user. Like gksudo but user to run as specified in GUI and not as switch.

Does such an app exist?

share|improve this question

I've never done it but... you may be able to piece together a script that will accomplish this.

You could use zenity to present the GUI list and gksu to execute the other application.

You would need to open up the xhosts permissions to allow the other user's process to access your workstation.

share|improve this answer
+1: that's exactly what I thought. – dag729 May 6 '10 at 21:13

gksu is a program for graphically selecting the user as which to run a command. For more about specific situations and various authorization issues see a post on UbuntuForums.

share|improve this answer
Yeah... that's what I want, but I want to specify which command in the invocation instead of having the user type something in a box. – singpolyma Sep 26 '12 at 16:15

In addition to what Chris Nava told about zenity (that is a really neat piece of software), you can also try whiptail, kdialog and xdialog. (Maybe an apropos dialog in your terminal will give you further hints).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .