Questions tagged [gksudo]

gksudo is a frontend to sudo

gksudo is a frontend to sudo. Its primary purpose is to run graphical programs as root. gksudo is provided by the gksu package.

72 questions
110
votes
2 answers

Why is gksu no longer installed by default?

I have always recommended pressing ALT+F2 and typing for example gksu nautilus or gksudo nautilus both are equivalent; to run graphical programs with root privileges. However, I have just installed raring on a test system and this no longer…
Warren Hill
  • 22,412
  • 28
  • 70
  • 88
110
votes
7 answers

What is the difference between "gksudo nautilus" and "sudo nautilus"?

I've been using gksudo nautilus and sudo nautilus through Alt+F2. What's the difference? They look very similar!
DrKenobi
  • 6,552
59
votes
3 answers

What is the difference between gksudo and gksu?

Is there any difference between the behavior of gksu foo and gksudo foo? Can they be used interchangeably?
Sid
  • 10,643
18
votes
1 answer

sudo, gksudo, kdesudo and their differences?

What is the difference between sudo, kdesudo and gksudo, and when should I use each? I know that sudo allows me to run both cli and gui functions, but I've seen other people on websites using kdesudo and gksudo for gui functions.
SamuelH
  • 826
17
votes
2 answers

How to add gksudo or what to use instead in Ubuntu 13.04?

I used to use gksudo gedit /etc/something.conf to edit system configuration files but this doesn't seem to work any more. Looks like there is no gksudo in 13.04. How can I add it back or what am I intended to use instead?
Ivan
  • 58,745
12
votes
3 answers

How to get GUI sudo password prompt without command line?

Currently, for all my commands that require root access, I have to type them out on a command line. I would like for the GUI to prompt me to key in my password, when sudo is required, instead of having to type out the commands from command line. Is…
Sean
  • 121
11
votes
1 answer

"Command 'gksu' not found" error on Ubuntu 18.04

While running gksu gedit /etc/udev/rules.d/somefile.rules I am getting this suggestion. Command 'gksu' not found, did you mean: command 'gosu' from deb gosu command 'ksu' from deb heimdal-clients command 'ksu' from deb krb5-user Try: sudo…
10
votes
2 answers

Can I open a file as root by just using the right click menu

Opening file as root is possible with sudo. But, how to right click a file and make it run as root ? I am using nautilus.
Ramvignesh
  • 1,862
  • 6
  • 20
  • 31
6
votes
1 answer

How do I provide arguments to a command run from gksudo?

I want to add a shortcut for gnome-system-monitor that runs with root access and has very high priority. My command for the shortcut is: gksudo -k -u root nice --20 gnome-system-monitor But this gives the error: gksudo: unrecognized option…
6
votes
3 answers

Replacing gksudo with pkexec: editor doesn't start in current folder

I'm trying to be a good boy and stop using gksudo, especially since it just got orphaned in the 18.04 daily builds (note, this question is not specific to 18.04). In the bad old days of using gksudo, I'd typically navigate to a folder containing the…
4
votes
1 answer

How can I get the authentification dialog programatically?

Instead of using gksudo in a bash script, I want to invoke the authenticate dialog ( as in screenshot) instead. Is it possible? If yes, how? Thanks.
Hanynowsky
  • 2,801
3
votes
2 answers

Is it possible to run GUI programs without a desktop installed?

I'm using crouton which enables me to run 14.04 on my Chromebook. I opted to not install a desktop to save disk space so used the cli-extra target when installing: sudo sh ~/Downloads/crouton -r trusty -t cli-extra -n cli I can now run sudo…
3
votes
0 answers

Which best practice for using gedit as root?

gksudo seeming to be somehow depreciated since 2017 as I see on the french forum documentation, is there an environment and version agnostic best practice allowing to use gedit as root? (excluding vim, nano or tee: the use case being a GUI amendment…
nam1962
  • 151
3
votes
1 answer

Every application which require admin password won't open

Something happened few days ago in my Xubuntu 14.04. None of applications which require admin password won't open. Apps like GParted, Update Manager, File Manager when trying to open a folder as root, etc... No matter how I start them. From the…
qwerty193
  • 31
  • 4
2
votes
1 answer

gksudo pcmanfm alone or with gksudo leafpad?

If I open pcmanfm using the gksudo command this lets me manipulate files and directories safely. But what if I want to open and modify a text file in one of those directories? Will the gksudo protection carry over to any files I open in Leafpad or…
jackL
  • 239
1
2 3 4 5