Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gksudo]

gksudo is a frontend to sudo

2
votes
0answers
29 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
67 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
17 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
0answers
21 views

Lubuntu 18.04: launch .Desktop app as root [duplicate]

been LUbuntu user for many years, recently upgraded from 16.04 to 18.04. In previous versions if I wanted to launch an app from desktop as superuser (for example, starting a service) I created two ...
0
votes
1answer
55 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
30 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?
0
votes
0answers
38 views

PCManFM opened with gksudo crashes

I have Lubuntu 16.04 LTS, which I really like, I am quite competent, but I don't know everything about Linux. So, sometimes in LXTerminal, I use the command, gksudo pcmanfm + password, to access write ...
0
votes
0answers
14 views

Trouble deleting syslog files

I want to delete the syslog files as my root partition is 100% used but the move to trash button seems to be greyed out. I cannot use gksudo nautilus because my disk space is 0% and i have to install ...
1
vote
1answer
31 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
14 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
870 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

What happened to gxsudo?

I have a script with this. gxsudo thunar It now longer works? Did a kernel upgrade delete the program? Running 16.04 Ubuntu Mate.
3
votes
0answers
424 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
220 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
645 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
0answers
218 views

gksudo doesn't work [duplicate]

I want to start zuluCrypt as root with gksudo, but gksudo does not start it. When I started gksudo and the window to run an application opened, I typed zuluCrypt in. The Terminal then gave me a GTK-...
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
135 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
124 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
275 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 ...
0
votes
0answers
77 views

results of every access says “Permission denied”, How can I fix it?

I am using VirtualBox for virtual machine and my host OS is Window. I tried to change the IP address of Linux and something went wrong totally. Till there was no sign of "Permission denied". But after ...
1
vote
1answer
387 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
287 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
949 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
177 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
4k 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
48 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
111 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 ...
-2
votes
1answer
812 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
110 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 /...
4
votes
1answer
2k 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
1k 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
745 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 ...
9
votes
2answers
13k 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
74 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
449 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
72 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
450 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
258 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
2k 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
531 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
219 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
2answers
849 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
2answers
839 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 / &" ...