Synaptic launched from Krunner has no root privileges

Asked by dotancohen

In Kubuntu 10.04 RC when Synaptic is started from Krunner (Alt-F2) it does not ask for root privileges, it just gives an error message that it does not have them. In contrast, when started from Kmenu, Synaptic does ask for root privileges.

Question information

English Edit question
Ubuntu synaptic Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Rickard Närström (riccetn) said :

You will need to run "kdesudo synaptic".

Revision history for this message
dotancohen (dotancohen) said :

Thank you Rickard, I know how to start Synaptic with root privileges. However, Krunner is meant to be an application launcher, not a command line. Launching commands with Krunner is meant to be exactly as if one were clicking on Kmenu.

I appreciate you taking the time to convert the bug to a question, alas, the current behaviour is a programming oversight and therefore a bug.

Revision history for this message
Michael Lustfield (michaellustfield) said :

It's not a bug at all. The menu item includes kdesudo which is a tool to graphically ask the user for their administrative password. This is why you need to include it in the krunner dialog. It would be a security issue if the system tried to grant itself administrative access and would very likely not even work. There are no applications that work the way you are expecting.

If you want to run an application as root you will need to specify either su or sudo in some way before the command you want to run. That is of course, unless you run around as root which is a bad idea and you obviously don't do that.

Can you help with this problem?

Provide an answer of your own, or ask dotancohen for more information if necessary.

To post a message you must log in.