Questions tagged [gksudo]

GTK+ frontend for sudo

gksudo is a GTK+ frontend to sudo. Its primary purpose is to run graphical programs as root.

Links

11 questions
3
votes
1 answer

"sudo" session behavior in graphical environment

I wrote these two scripts and they are in my $PATH: gsudo: #! /bin/bash sudo -n true &> /dev/null if [ $? -eq 0 ] then sudo "$@" else upass=$(zenity --password --title "Enter your password" 2> /dev/null) [[ ! -z "$upass" ]] && echo $upass |…
isamert
  • 143
2
votes
0 answers

How to use GVFS to launch an X program with super user permissions?

I'm trying to port a script to Ubuntu 18.04 that uses gksudo to prompt the user for admin password in order to run a GUI program with the admin permissions. Now, gksudo has been removed from Ubuntu 18.04 and I understand that gvfs with the admin…
ezekiel
  • 337
0
votes
1 answer

error: XDG_RUNTIME_DIR not set in the environment. Gtk-WARNING **: cannot open display:

I used to open text files with sublime, and for Read-only files, I used to do : sudo sublime. But now just suddenly the sudo sublime command gives the following error : (sublime:3931): Gtk-WARNING **: cannot open display: while sublime command is…
0
votes
1 answer

Root user folder permissions changed in ubuntu 14.04

By executing chown command to give access of /root folder contents for 'test1' user. After that I am unable to login with my .ppk key - Server refused our key. How can I get back my root user access?
0
votes
1 answer

How do applications like gksu lock focus when launched?

I am curious how applications like gksu lock screen focus when prompting for a password. I see gksu even has an option "-g", that can disable this behavior. I am interested in doing something similar for a Python app (I used Quickly to generate the…
Monty
  • 3
0
votes
1 answer

Can't start Sublime Text with gksu

Sublime Text 3 is my primary text editor. I run it as a regular user, but once in a while I need to start is as root to edit some system files. I am used to having edit as root in my context menu on my old system. In my old Linux Mint 13 Maya I used…
Art Gertner
  • 7,429
0
votes
1 answer

"gksu" doesn't prompt for the root password

I use this terminal emulator x-terminal-emulator and when I run this on a normal non-privileged user ~$ gksu /usr/bin/x-terminal-emulator an app starts and tells me to choose a password for a new keyring and when I click "Cancel", the program…
0
votes
2 answers

Why gksudo does not exit after it started background process?

I'm trying to run conky with gksudo (to get top amongst all process, not just mine) but I have really strange issue. Despite the fact that conky forks itself and exit immediately, gksudo won't exit at the same time. If I close it with Ctrl+C conky…
vava
  • 5,948
0
votes
0 answers

How to add an item to the gnome menu that starts gedit as root?

I right clicked the gnome menu and clicked on "Edit menus" Then I clicked on "New item". Type: Application Name: gedit as root Command: gksudo gedit Comment: Launch gedit as root. When I click it, the gksudo dialog appears as expected. But then...…
Nathan Osman
  • 2,372
0
votes
3 answers

Run X applications as another user under Linux

Visiting the old topic of running X applications as another user under Linux, as the solution had always been "to use gksu" to me, but today, when I need it and tried it, it doesn't work. Following What Is gksu And Why Would You Use It, I tried,…
xpt
  • 9,385
  • 44
  • 120
  • 178
-1
votes
1 answer

Option to elevate priveleges in Ubuntu GNOME for file copy

I did a fresh install of Ubuntu 10.04 (GNOME) and I'm just copying over certain files from my backup which is on a Windows computer. The backup includes: A few scripts in /usr/bin A number of websites in /var/www A couple of startup scripts in…
Andy
  • 3,137