Synaptic launched from Krunner has no root privileges

Asked by dotancohen on 2010-04-27

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Last query:
2010-04-27
Last reply:
2010-04-30
Rickard Närström (riccetn) said : #1

You will need to run "kdesudo synaptic".

dotancohen (dotancohen) said : #2

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.

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.