5

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

Flimm
  • 40,306
  • 22
  • 94
  • 154
Josh Pinto
  • 7,769
  • 22
  • 80
  • 128

1 Answers1

6

Use

gksudo -u root <program_name>

or

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.

Flimm
  • 40,306
  • 22
  • 94
  • 154
leorize
  • 801
  • 5
  • 13
  • 4
    'gksudo program name' works by itself too. – Josh Pinto Jan 05 '13 at 09:24
  • 3
    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 05 '13 at 09:30
  • 2
    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 05 '13 at 09:36