Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.