Questions tagged [gksudo]

gksudo is a frontend to sudo. Its primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.

gksudo is a frontend to sudo. Its primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.

See the Linux Man Page for more.

31 questions
1
vote
0 answers

Cannot Launch `gksudo` using NodeJs `exec`

Goal I want to show graphical password prompt in nodejs to elevate priviledge thus gain some power to copy file content into another, but the last is owned by root. In the implementation, I try to execute dd along with it's argument with gksudo with…
Abdillah
  • 982
  • 11
  • 28
1
vote
0 answers

How to execute Bro using Java Runtime

On Ubuntu 14.04: I would like to execute Bro using the Jave Runtime as follows: String[] command = {"gksudo", "bro -r ../../pcaps/test1.pcap"}; process = Runtime.getRuntime().exec(c); Where the bro commands are correct and the path to the pcap is…
Wesley
  • 11
  • 1
1
vote
0 answers

gksudo and logname issues

We have a Java Swing cross platform application,which we are packaging into a deb file and installing it in the user's system. This application, upon it's start-up checks for the new version and installs it, if it finds any. At present for…
saiki4116
  • 323
  • 1
  • 4
  • 14
1
vote
1 answer

Sudo in Java's Runtime.exec & gksu for umount

I am writing a Java application in which (among other stuff) I'd mount a external device, do some copying, and then unmount it. //I am mounting several devices in created dirs named sdb, sdc... according to the partitions String[] command =…
Yellrag
  • 83
  • 6
1
vote
2 answers

QProcess call gksudo with parameter for individualized message for calling script

How can I parse a parameter like --message "text" to /usr/bin/gksudo using QProcess to show my individualized text? Just with /usr/bin/gksudo and calling my script.sh it works fine. Here the minimal example: QString cmd =…
imizeropt
  • 176
  • 1
  • 13
0
votes
0 answers

X11 error when running Pycharm, Tkinter, and others

Ahoy there, Whenever I try to run Pycharm as root from the terminal with: sudo charm Which returns this error: seth@pixel:~/programming/python/Spoofenschmirtz-Evil-incARPorated$ sudo charm Start Failed: Failed to initialize graphics…
Tessa Painter
  • 2,113
  • 2
  • 16
  • 21
0
votes
0 answers

How to create a Linuxterminal with a Pythonclass in Eclipse

I'm trying to figure out how to open a terminal in linux, when I'm going to run my Pythoncode in Eclipse. So I got the idea to use os.popen("gksu -S command,"w"). But for this way I need to enter my password. Can I add my password anywhere in the…
Ceeya
  • 65
  • 1
  • 10
0
votes
1 answer

How to set the working directory using gksu gnome-schedule

How do I set the working directory using gksu gnome-schedule so that all shells referenced in my script use the working directory I set using cd? On Ubuntu I have a shell script called runProcess.sh. The script is located in a directory called…
user1654528
  • 395
  • 3
  • 12
0
votes
3 answers

Execute one command after another one finishes under gksu

I'm trying to have a desktop shortcut that executes one command (without a script, I'm just wondering if that is possible). That command requires root privileges so I use gksu in Ubuntu, after I finish typing my password and it is correct I want the…
shoham
  • 792
  • 2
  • 12
  • 30
0
votes
1 answer

Run scipt like sudo with Gksudo

I'm new in linux. I'm try to mount and umount .iso with nemo-script. I put the script /home/user/.gnome2/nemo-scripts/. My problem is, with gksudo I only run 1 command like su. Who I can run all this script like su? #!/bin/bash gksudo -k /bin/echo…
F.N.B
  • 1,539
  • 6
  • 23
  • 39
0
votes
1 answer

Installing a software from Java Projects with sudo command

what I would like to achieve is installing a software from java application that I created. I've got permission with gksudo. Then, I typed my pass and the program started working until yes/no option was appeared. How can I pass this…
0
votes
2 answers

Ubuntu 12.04 - Use sudo or gksu for launching Sublime text 2?

I am new to using Ubuntu 12.04 and noticed two different ways of launching Sublime Text 2 via Terminal window, first being sudo and the other being gksu. Upon using both I noticed it's launching different instances of Sublime Text 2 with different…
webdev
  • 741
  • 5
  • 16
0
votes
2 answers

pydev disappeared when sudo eclipse

pydev disappeared when sudo eclipse I am trying to run py script with root power within eclipse. So I started eclipse as 'sudo eclipse'. But then pydev plugin dispeared. The CDT plugin seemed to be OK. I installed eclipse from Ubuntu repository and…
0
votes
1 answer

gksudo and python script

Hi I have a smaller problem now but a problem nonetheless. My python script seems to execute out of order when it is run via gksudo. The system commands in the first if block execute before, print ("Removing Partial, Unneeded, And Obsolete…
Brooks
  • 359
  • 3
  • 9
0
votes
1 answer

Tomcat turn off directly after startup when called using gksu

I'm trying to use a launcher within the gnome menu in order to start a Tomcat server. For that I used the following command "gksu sh /myhome/tomcat_starter". The script "tomcat_starter" defines some environment variables before it starts the…
Sabbane
  • 2,938
  • 4
  • 21
  • 27