Questions tagged [gksu]

gksu is a GTK+ frontend to su and sudo

gksu is a front-end to su and gksudo is a front-end to sudo. Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.

116 questions
132
votes
3 answers

Why should users never use normal sudo to start graphical applications?

I've read the comunity "RootSudo" documentation and am interested in this line: You should never use normal sudo to start graphical applications as Root. Why? What is the difference? Please provide a simple explanation, as I'm just a normal…
Nur
  • 4,131
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
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
57
votes
6 answers

gksu: Gtk-WARNING **: cannot open display: :0

All of the sudden gksu stopped working for me: ~$ gksu gparted (gpartedbin:24252): Gtk-WARNING **: cannot open display: :0 The same happens with gparted-pkexec: ~$ gparted-pkexec No protocol specified (gpartedbin:25454): Gtk-WARNING **: cannot…
d_inevitable
  • 1,922
49
votes
8 answers

Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?

I installed Ubuntu 17.10. Now I am having trouble with gksu: $ gksu -dg synaptic No ask_pass set, using default! xauth: /tmp/libgksu-HgUjgQ/.Xauthority STARTUP_ID: gksu/synaptic/8760-0-alex-XPS-15-9530_TIME4974977 cmd[0]: /usr/bin/sudo cmd[1]:…
Alex Chapiro
  • 491
  • 1
  • 5
  • 5
48
votes
3 answers

What are the differences between sudo, su, visudo, chroot, and gksu?

What are the differences between sudo, su, visudo, chroot, and gksu ?
lambda23
  • 3,362
46
votes
12 answers

How can I run an application with a GUI as admin from a non-admin user session?

I defined 2 user accounts: one with admin privilege (with sudo right) => lets call it adminuser. a 2nd one without any privilege => lets call it normaluser and I configure the autologin on this 2nd user normaluser. So when I open a normaluser…
Boris
  • 5,012
42
votes
8 answers

I need an equivalent of gksu in 18.04

I've read a lot of threads about gksu being removed from many Linux flavours, including Ubuntu 18.04. Many state that gksu is an abomination and no user should ever need to use anything like it. I have 2 examples where, as far as I know, I must…
pastim
  • 910
  • 1
  • 7
  • 11
40
votes
1 answer

difference between gksudo and sudo?

Possible Duplicate: What is the difference between “gksudo nautilus” and “sudo nautilus”? I have tiny script that I want it to run on start-up, but it needs sudo privileges so I use gksudo for the job. but it fails. (it works correctly using…
Untitled
  • 1,468
28
votes
4 answers

Is the difference between sudo and gksu the same as the difference between sudo -i and sudo -s?

Is the difference between sudo cmd and gksu cmd, the same as the difference between starting a shell with sudo -i and sudo -s? ... or put another way, Is sudo cmd the same as sudo -i cmd and gksu cmd the same as sudo -s cmd? EDIT: Based on what…
Peter.O
  • 25,251
20
votes
3 answers

Is there a desktop-neutral gksudo?

There are various tools for various desktops that aim to run a graphical application as root. gksudo, kdesudo, empower, etc... But what if I'm writing a script that could be used on any Linux desktop? Is there an xdg-sudo of some sort..? A standard…
Oli
  • 299,380
15
votes
2 answers

How to install an application that requires gksu package on ubuntu 18.04?

I downloaded the Upwork desktop App on ubuntu 18.04. When I open it with Gdebi package installer I saw this error: I tried to install gksu manually via sudo apt install gksu but I got this error Building dependency tree Reading state…
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

What are the equivalents of "gksu nautilus" in other Ubuntu Derivatives

How do I open the file manager in superuser mode in the same way as doing gksu nautilus in Ubuntu.
mcepeda14
  • 157
1
2 3 4 5 6 7 8