gksudo is a frontend to sudo

learn more… | top users | synonyms

1
vote
2answers
1k views

gksudo keeps asking for my password when using a custom Unity launcher

I wrote a custom .desktop file that contains an Exec line #!/usr/bin/env xdg-open [Desktop Entry] (...) Exec=gksudo /my/path/to/bash_script.sh (...) This script launches some zenity calls. Then I ...
0
votes
2answers
304 views

GTK apps not respecting Kubuntu's oxygen-gtk theme when executed as sudo

I am using Kubuntu 14.10 and it's working quite well so far, but my problem is pretty much what it's stated in the title, when executing a GTK app that requires sudo privileges, such as Synaptic ...
1
vote
1answer
35 views

Is it bad practice to use gksu when writing code in development?

I am writing a C++ application that needs to access the serial port and use the mount command, both needing root to be performed. In the end the application will be run as root on a device, but I am ...
0
votes
1answer
33 views

messed up my /user directory permissions an now cannot run sudo or gksu

while changing the permissions for the /usr folder of owner to root read and write of group to root read and write of other to read and write i ignoratly checked to box to propagate to all contained ...
0
votes
1answer
65 views

Sublime Text does not launch under gksudo

Sublime Text does not launch under gksudo. If I start it directly sudo subl it works, but gksudo subl fails. Also, how can I get a list of programs that can run from terminal straight away ...
0
votes
1answer
225 views

How can I run an autorun file as root with no gui

I set up a server using ubuntu with no gui. I need root for some tasks that I want to autorun on this server. Normally I would just use gksudo because autorun programs never seem to work with su or ...
0
votes
1answer
633 views

Why can I not use gksudo/sudo with any GUI program?

In my Ubuntu 12.04.2 with GNOME-Shell I'm not able anymore to run any graphical programs with gksudo or sudo. I always get an error like cannot open display I don't remember any particular changes ...
1
vote
0answers
16 views

gksudo nautilus isn't exiting after closing the window

As for graphical things with high privileges, gksudo and gksu are much more convenient than sudo and su gksudo nautilus But when i use this command and after closing the opened window the terminal ...
1
vote
0answers
31 views

gksudo equivalent for Ubuntu Touch

Is there a gksudo equivalent (or Cpp / Qml api call) that lets you ask for a password in a graphical way on Ubuntu Touch? Thanks
0
votes
0answers
123 views

GUI apps needing root access won't open

I am currently using Ubuntu 14.10. Here is the terminal output of three apps I tried : Gparted: $ gksudo gparted Too few arguments. Invalid MIT-MAGIC-COOKIE-1 key (gpartedbin:4427): Gtk-WARNING **: ...
0
votes
0answers
24 views

Can i use “gksu” to became root for CLI operation?

I don't care if this is unsafe, because i'm only doing it as a programming exercise, but that's what i want to do: I want to create a C program that, with the "system" command, will call dpkg and ...
0
votes
0answers
91 views

Problems launching LightTable with gksudo in Unity Launcher

Following the instructions found in this question: How to launch application as root from Unity Launcher? I was able to launch LightTable from the Unity Launcher. Problems: 1) Once the program is ...