gksudo

Run a Python project in Eclipse as root

Hi, I use Eclipse as my IDE, and when I run my application I wish the application itself to run as root. My program currently checks if it is root, and if not it restarts itself with gksudo. The output, however, isn't written to the console. I can't use sudo, since it doesn't give me a graphical prompt. (While my program is CLI, Eclipse...

Get netbeans to run my project with sudo?

I am working on a project in netbeans that requires the running project to have root privileges. I would like it so that each time I push "Run Project" (F6) my project is run as root, so with the equivalent of "gksudo javac Main", as it is has a GUI. One option is to start netbeans with root privileges, easily done by editing the short...

How do I sudo the current process?

Is it possible to use a sudo frontend (like gksudo) to elevate the privileges of the current process? I know I can do the following: sudo cat /etc/passwd- But I'm interested in doing this: sudo-become-root # magic function/command cat /etc/passwd- I'm writing in Python. My usecase is that I have a program that runs as the user, b...

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 pydev using eclipse 's installation manager under my user account. Pydev is working fin...