Questions tagged [gksudo]

gksudo is a frontend to sudo

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

Is lxqt-sudo the only valid alternative for gksudo?

since ubuntu 4.10 i always used gksudo regularly, and then, few years ago, gksudo simply disappeared from the repository, forcing me to look for old and unsupported .deb packages and install from ...
Paulo Silva's user avatar
0 votes
0 answers
154 views

22.04 Jammy Chnaged methods for bypassing root password prompt for some commands (Dell build)

On my Ubuntu 18.02 systems, I was able to update the /etc/sudoers file to allow root without password for specific applications. For example these entries started the Muon package manager which ran ...
HiTechHiTouch's user avatar
1 vote
0 answers
45 views

IBM Installation Manager wants "gksudo" [duplicate]

I've installed IBM Installation Manager on Ubuntu 18.04 but when I started the following message pops up: Could not find the program 'gksudo' I've tried to install it by running the commands below: ...
ka3ak's user avatar
  • 393
1 vote
0 answers
51 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 ...
Ketho's user avatar
  • 11
0 votes
1 answer
106 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?
alex spi's user avatar
11 votes
1 answer
28k 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-...
Sakthivel A R's user avatar
2 votes
0 answers
50 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 ...
wilx's user avatar
  • 656
2 votes
0 answers
60 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 /...
David's user avatar
  • 31
0 votes
0 answers
168 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 ...
user avatar
1 vote
0 answers
268 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, ...
grassisgreen's user avatar
0 votes
1 answer
17k 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 ...
Denisuu's user avatar
  • 37
2 votes
1 answer
426 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 ...
4dummies's user avatar
  • 452
0 votes
1 answer
73 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 ...
Prasan Dutt's user avatar
6 votes
3 answers
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, ...
Organic Marble's user avatar
2 votes
3 answers
2k 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.
fixit7's user avatar
  • 3,117
3 votes
0 answers
2k 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 ...
nam1962's user avatar
  • 151
3 votes
1 answer
505 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, ...
qwerty193's user avatar
2 votes
1 answer
2k 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 ...
Cruiser13's user avatar
  • 145
0 votes
1 answer
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 ...
mango wodzak's user avatar
1 vote
0 answers
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 ...
Vishal Tanwar's user avatar
0 votes
0 answers
141 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 ...
Omkar Nath Singh's user avatar
0 votes
2 answers
215 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 ...
angrykoala's user avatar
0 votes
1 answer
368 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 ...
Anirudh Ramesh's user avatar
1 vote
1 answer
747 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....
WinEunuuchs2Unix's user avatar
1 vote
0 answers
391 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 ...
S Hristoskov's user avatar
0 votes
1 answer
2k 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 ...
BFranks's user avatar
  • 55
2 votes
1 answer
367 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 ...
jackL's user avatar
  • 209
0 votes
1 answer
17k 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 ...
Alejandro_Ubuntu's user avatar
2 votes
1 answer
65 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 ...
OliPro007's user avatar
  • 123
1 vote
1 answer
206 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 ...
TheLeonKing's user avatar
2 votes
1 answer
4k 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 ...
macacomen98's user avatar
-1 votes
1 answer
2k 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 ...
Web3 Philosopher's user avatar
2 votes
0 answers
518 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 /...
notgiorgi's user avatar
  • 133
3 votes
1 answer
5k 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 ...
henrywright's user avatar
1 vote
1 answer
3k 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") ...
Ashwin Joshi's user avatar
1 vote
2 answers
2k 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 ...
Sijin T V's user avatar
  • 552
10 votes
2 answers
17k 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.
Ramvignesh's user avatar
  • 1,812
2 votes
2 answers
13k 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 ...
raz's user avatar
  • 1,852
0 votes
1 answer
2k 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 ...
ThePiercingPrince's user avatar
1 vote
1 answer
99 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 ...
N Alex's user avatar
  • 143
0 votes
1 answer
567 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 ...
user1305268's user avatar
1 vote
1 answer
3k 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 ...
MyUserIsThis's user avatar
2 votes
0 answers
103 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
Frans Schreuder's user avatar
0 votes
1 answer
609 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-...
Henry's user avatar
  • 342
0 votes
1 answer
275 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 ...
Roy Cai's user avatar
2 votes
1 answer
5k 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 ...
Hans's user avatar
  • 1,281
0 votes
1 answer
1k 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 ...
Tfb9's user avatar
  • 681
1 vote
3 answers
254 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 ...
Peter Nerlich's user avatar
1 vote
2 answers
1k 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 ...
jeremylkt's user avatar
1 vote
2 answers
2k 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 / &" ...
Urhixidur's user avatar
  • 233