Questions tagged [gksudo]
gksudo is a frontend to sudo
73
questions
0
votes
0
answers
37
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 ...
0
votes
0
answers
46
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 ...
0
votes
0
answers
26
views
Xubuntu desktop ask the password when it is going to sleep
when I configure (about the graphical configuration) the sleep mode after some idle time, than the system ask me to my password when the system is going to sleep.
When I chose manually power off / ...
1
vote
0
answers
44
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:
...
1
vote
0
answers
44
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
1
answer
105
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?
9
votes
1
answer
26k
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
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 ...
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 /...
0
votes
0
answers
163
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
0
answers
257
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
1
answer
15k
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 ...
2
votes
1
answer
361
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
1
answer
64
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
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, ...
1
vote
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.
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 ...
3
votes
1
answer
481
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
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 ...
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 ...
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 ...
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 ...
0
votes
2
answers
209
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
1
answer
364
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
1
answer
709
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
0
answers
384
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
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
...
2
votes
1
answer
362
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
1
answer
15k
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
1
answer
63
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
1
answer
205
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 ...
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 ...
-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 ...
2
votes
0
answers
481
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
1
answer
4k
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
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")
...
0
votes
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 ...
10
votes
2
answers
16k
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
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
...
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 ...
1
vote
1
answer
98
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
1
answer
562
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
1
answer
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
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
0
votes
1
answer
594
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
1
answer
273
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 ...
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 ...
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 ...
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 ...
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 ...