gksudo is a frontend to sudo

learn more… | top users | synonyms

0
votes
1answer
52 views

`sudo`, `gksu` and `gksudo` without password

In Fedora, I am surprised that if my administrator account does not have a password, sudo, gksu and gksudo won't prompt me for one! (it is not caused by /etc/sudoers). In Ubuntu, they will ask me for ...
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
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
37 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 ...
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
1
vote
1answer
97 views

Desktop files with superuser privileges

I have Matlab installed under /home/fer/Matlab, with the main exec file being /home/fer/Matlab/R2014b/bin/matlab. There is something weird with it and it only works if I open it with the terminal ...
1
vote
3answers
94 views

gksudo doesn't act like sudo for 'string' >> file [duplicate]

I'm trying to do a two-lines-script to temporary set a specific nameserver. Therefore I just output 'nameserver XXX.XXX.XXX.XXX' to the /etc/resolv.conf file, because it gets overwritten next time ...
0
votes
1answer
70 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
62 views

Make gksu ask for password in terminal

If I needed to run a graphical command as root, I would use: username@HENRY-PC:~$ sudo gedit [sudo] password for username: But this is apparently discouraged, because any files created for the ...
0
votes
1answer
56 views

why is sudo not working with exported path?

If not sure if this is close to (or even a duplicate of) Why does sudo not add root's PATH with Ubuntu 12.04?, I'm still posting this question because I didn't understand anything from there, if ...
0
votes
0answers
126 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
2answers
311 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 ...
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
1answer
155 views

bash- Control-C behavior (^C) / gksudo vs sudo

This is about how the ctrl+c key press has a different effect when performed to a gksudo instance as opposed to a sudo instance. I executed the following using gksudo to read an installation failure ...
0
votes
0answers
94 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 ...
0
votes
2answers
166 views

How to properly detach a command?

I have this little script I use to launch a root Nautilus window (yeah, dangerous, but sometimes necessary): #!/bin/bash gksudo --description "Launch a root Nautilus" -- sh -c "xdg-open / &" ...
2
votes
1answer
153 views

Preserving GTK theme with gksudo

I have a computer with two (non simultaneous) users who are both in the sudo group. Is there a way to preserve the user's GTK theme with gksudo, for instance when running the update manager? By ...
0
votes
1answer
96 views

Is there a better command to use than Sudo? [duplicate]

I used to hear you are supposed to use gksudo, but that is no longer installed by default. What should be used in its stead?
5
votes
1answer
371 views

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 ...
0
votes
1answer
752 views

Possible to run gksudo without a password require?

So i have xampp installed on my desktop and since it can use alot of ram if it stays active for a long time i followed tutorial to put together some kind of python script to start and stop services ...
2
votes
1answer
6k views

gksudo nautilus error - Ubuntu 14.04

I installed gksudo on Ubuntu 14.04 LTS and when i run nautilus with gksudo gksudo nautilus it asks for password, then gives error and then crashes (nautilus:19688): GLib-GObject-WARNING **: invalid ...
0
votes
1answer
1k views

Cannot start nautilus or any other app via gksu anymore

I am running Ubuntu 14.04 64bit on my Dell XPS 13 laptop, and up until now I was able to start nautilus via terminal or by using ALT+F2 and typing gksu nautilus through Dash. Only now, supposedly ...
0
votes
1answer
85 views

gksudo from a non sudoer?

I want to run gui applications that require admin privileges from gksudo/gksu on a non-sudoer account. Currently, I can just run sudo guiapplication from a sudoer tty, and will be able to display/use ...
2
votes
1answer
4k views

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 ...
0
votes
1answer
247 views

Is gksudo still in use, if not what is the replacment? [duplicate]

Is gksudo still in use or is it officially removed? It is still available in the Ubuntu tutorial: (https://help.ubuntu.com/community/Beginners/BashScripting) and what would be the replacement for it? ...
62
votes
3answers
47k views

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 ...
0
votes
1answer
3k views

When I try to save any file, it gives me “Permission Denied”

It doesn't matter where, it just won't save any files. I have tried running gksudo gedit /etc/default/grub, because I am trying to change the quiet splash to elevator=deadline but when I try to save ...
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 ...
8
votes
2answers
24k views

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

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 ...
0
votes
1answer
594 views

Need hdd access from live cd

Something went wrong with the kernels of my current installed Ubuntu, and because of this i can't access my Ubuntu installation, so I'm trying to make a back-up using a LiveCD and copying everything ...
1
vote
1answer
120 views

Sharing Audio Streams In Firefox when using Gksudo

My admin user has proprietary information, banking info and internet password database on it's account. In order to use apps while online, prevent apps from contacting the internet silently, bring up ...
0
votes
1answer
982 views

sudo works, but gksudo doesn't, why?

sudo lshw -html>1.html works perfectly.I get system information in 1.html. But, gksudo lshw -html>1.html doesn't work.I get gksudo usage options in 1.html Information: I am developing ...
0
votes
1answer
634 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 ...
4
votes
1answer
134 views

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.
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 ...