Questions tagged [gksudo]

gksudo is a frontend to sudo

Filter by
Sorted by
Tagged with
1
vote
0answers
16 views

Missing permission for GUI application to upload system snapshots

I'm using Timeshift to create snapshots of my system and I'm trying to upload these huge files onto Google Drive using the Application Insync. The problem is that the application does not have the ...
0
votes
0answers
18 views

18.04 Xubuntu PCManFM - Add ''Run as root'' to menu, not right-click

I reciently installed Lubuntu 19.04 that has the option of ''Run as administrator/run as root'' in the contextual menu of ''Tools''. Now I have Xubuntu 18.04 and installed PCManFm as file manager, ...
0
votes
1answer
85 views

I can't delete files from trash in gksudo nautilus

I installed MATLAB in root. But when I try to delete it from gksudo nautilus I do not have access in trash. I tried via terminal but still I can't do it. How can I delete these files?
6
votes
1answer
1k views

“Command 'gksu' not found” error on Ubuntu 18.04 [duplicate]

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-...
2
votes
0answers
45 views

How to install gksu which was removed from distributions? [duplicate]

We are forced to install ClearPass OnGuard which seems to require gksu which was removed from Linux distributions. Is there a way to get it from some 3rd party PPA or other source? Preferably, updated ...
2
votes
0answers
53 views

Gksudo alternatives, especially to use in .desktop files [duplicate]

I have wanted to create a .desktop file to create an application icon which would execute a .run file as admin. Since the gksu package is deprecated, I've used Exec=gnome-terminal --command="sudo /...
0
votes
0answers
102 views

How to prompt user for password and get result without gksudo?

There is no more gksudo command as well as gksu package in Ubuntu 18.04. How do I achieve the same using previous command like DISPLAY=:0 gksudo -p -m "Enter your password to apply changes." This ...
1
vote
0answers
96 views

gksudo Workaround for Leafpad and PCmanFM

I have read a lot of articles on how to work around the lack of gksudo in the latest *buntu releases. Unfortunately, they've been tailored to applications I don't use like gedit, mousepad, nautilus, ...
0
votes
1answer
3k views

puTTY serial (ttyUSB0) only works when run as root? [duplicate]

Today I had to configure some CISCO switches & routers at school, and I used a USB to serial adapter. Unlike on Windows I didn't have to install any drivers; it was recognized immediately. When ...
0
votes
0answers
31 views

How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 1 [duplicate]

I am a newbie to Ubuntu I tried to get rid off from asking password every time so I changed some line in sudoers file now I am stuck. How can I solve this?
1
vote
1answer
72 views

How to use the display (e.g. a browser) when sudo-ed into root or another user

When I sudo (or gksu) into root or another user (as I sometimes do with sudo -i) I cannot use the display. I know the risks as root, and this is usually when I want to do something as another user ...
0
votes
1answer
28 views

Ubuntu fresh install always starts in guest session

I scratch my head enough before posting this question. All fresh installation of ubuntu always resulting in getting only guest account by default. I am not able to see any option to login into my ...
5
votes
3answers
2k views

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

Can't start thunar as root

I have a script with this. gxsudo thunar It no longer works. Did a kernel upgrade delete the program? Running 16.04 Ubuntu Mate.
3
votes
0answers
1k views

Which best practice for using gedit as root? [duplicate]

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

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, ...
2
votes
1answer
1k views

Can't use gksudo to run gedit, error copying .Xauthority [duplicate]

I have a battery power issue that I'm trying to resolve. One proposed solution involves adding some boot arguments and then removing the battery, but I'm running into trouble on the first step. To add ...
0
votes
1answer
2k views

can't connect to internet with ubuntu 17.10 [duplicate]

I have a fresh install of ubuntu 17.10 .. After installation, I was able to browse the internet, but 1 day later, and even though wi-fi appears listed as working, it is not. I've searched around for ...
1
vote
0answers
25 views

(nautilus:18063): Gtk-WARNING **: cannot open display: :0 not connect: Connection refused [duplicate]

I just upgraded my Ubuntu 17.04 to 17.10 and I found that it is no longer accepting password in the gksudo nautilus password window. I get this error instead (nautilus:18063): Gtk-WARNING **: cannot ...
0
votes
0answers
21 views

nautilus-admin doesn't work in Ubuntu 17.10 [duplicate]

So yesterday I tried to use gksudo nautilus, but it resulted in (nautilus:3336): Gtk-WARNING **: cannot open display: :0 not connect: Connection refused I searched askubuntu and found suggestions ...
0
votes
0answers
140 views

Ubuntu 17.10 Gparted, gksudo issue [duplicate]

Unable to use Gparted on 17.10. I have already tried "sudo xauth merge $HOME/.Xauthority" and with gksu and gksudo. Gksudo has another issue in Ubuntu 17.10. I am unable to enter password in the ...
0
votes
2answers
174 views

Supress gksudo output

When I execute gksudo, I get some output in the terminal, I want to supress that output, but still get the output from the actual command. For example: $ gksudo whoami > #some gksudo related ...
0
votes
1answer
335 views

Question regarding gksudo/gksu [duplicate]

I am on a Windows PC and tried connecting to AWS running Ubuntu. I tried opening a file using gedit, was unsuccessful. Someone suggested MobaExtreme. Then I had to install gksudo in the server and ...
1
vote
1answer
508 views

How can I create new “gksu” command based on pkexec?

When I google “gksu gedit” one of the top entries (How to run gedit and nautilus as root) advises that gksu usage is frowned upon: gksu hasn't been updated since 2009 and is not recommendedany more....
1
vote
0answers
342 views

gksudo command doesnt run

I'm trying to install Matlab on my Ubuntu 16 . I mounted the iso file and go to directory then run the command gksudo ./install and typed the password ,but the installer doesn't start. When I'm using ...
0
votes
1answer
1k views

How to execute a single launcher as root without password?

I want to run an executable file as root by clicking an icon. I have the following desktop file (test.desktop) in place: [Desktop Entry] Version=1.0 Name=Test Program Comment=Open test program ...
2
votes
1answer
311 views

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

How to run GUI applications as root

UPDATE I would like to know which is the recommend way of running GUI applications as root, mainly because what I'm trying isn't running smoothly. I get some annoying warnings that makes me think ...
2
votes
1answer
51 views

Make locally compiled programs request password graphically

I have an application that I downloaded from my class' website for our custom avr robot and it requires root privileges to send our binaries to the robot via usb. When I try to use it with sudo, the ...
1
vote
1answer
139 views

How to copy files with superuser rights without gksudo nautilus?

I'm tired of having to start the gksudo nautilus file browser every time I want to copy a file, but don't have the correct privileges for it. How can I grant my account the permanent privileges to ...
1
vote
1answer
3k views

(gksudo:2375): Gtk-Warning **:cannot open display:

When i insert this: gksudo nano /etc/default/grub it replies with this: (gksudo:(4 digit number, always different)): Gtk-Warning **:cannot onpen display: But if i type sudo nano /etc/default/grub ...
-1
votes
1answer
1k views

Can't run GUI applications as root

I know i messed something up, i just don't know what, how or when. i used to be able to run gksudo (gui application) or sudo (gui application) and then i couldn't anymore - I've torn the whole ...
2
votes
0answers
208 views

Script crashes when starting from .desktop file

When I execute script from terminal by hand, it runs without problems: gksudo /path/to/module.sh But when I use .desktop file to run script on startup: [Desktop Entry] Type=Application Exec=gksudo /...
3
votes
1answer
3k views

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 ...
1
vote
1answer
2k views

How can I make running a command depend on the input of a correct password (Tkinter GUI)?

I created a small GUI in Tkinter/python: import Tkinter import tkMessageBox import os top = Tkinter.Tk() top.geometry("400x250") def root_login(): os.system("gksudo su && sudo su") ...
0
votes
2answers
1k views

How GUI based apps ask for root password without gksudo installed?

In old ubuntu releases, I believe, GUI apps ask for root password using gksudo. Now gksudo not comes preinstalled in ubuntu. For me, if I am adding a custom launcher of a compiled executable which ...
10
votes
2answers
14k views

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.
2
votes
2answers
12k views

Can not install nautilus-gksu in Ubuntu 14.04 LTS [duplicate]

I am trying to install nautilus-gksu in Ubuntu 14.04 LTS by sudo apt-get install nautilus-gksu but I am having the following error. Reading package lists... Done Building dependency tree ...
0
votes
1answer
1k 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
1answer
79 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
505 views

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

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
1answer
2k 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 ...
2
votes
0answers
78 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
1answer
518 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 X-...
0
votes
1answer
265 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 (like ...
0
votes
1answer
3k 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
1answer
718 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 ...
1
vote
3answers
238 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 ...
1
vote
2answers
924 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
2answers
1k 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 / &" ...