Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

How do you create a program launcher with Alacarte (Main Menu) that has administrative privileges? I ask because I seem to have deleted the launcher for Synaptic Package Manager and whenever I start it with the command, 'Synaptic' I have to run it without administrative privileges.

As in, what do I type into, 'Command' to run Synaptic Package Manager with administrative privileges in the following screenshot: enter image description here

share|improve this question
up vote 5 down vote accepted


gksudo -u root <program_name>


gksudo -k -u root <program_name>

to run <program_name> as the root user.

See the manpage for the gksudo command Manpage icon for more information.

share|improve this answer
Thanks mate, this works perfectly. – Brenton Horne Jan 5 '13 at 8:24
'gksudo program name' works by itself too. – Brenton Horne Jan 5 '13 at 9:24
Indeed, there's no need to specify -u root, without the -u option gksu and gksudo default to running the command as root. – Eliah Kagan Jan 5 '13 at 9:30
As stated, gksudo synaptic is sufficient. However, the default command is synaptic-pkexec; you can try that to see if you prefer it (the difference occurs when you enter your password). – Paddy Landau Jan 5 '13 at 9:36

Your Answer


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.