0
votes
0answers
17 views

Graphical pkexec require username and password

I am wondering if there is a way to have the graphical authentication part of pkexec ask for a username as well as a password instead of just a password. The computer I am trying to get set up is on ...
0
votes
0answers
18 views

GUI applications doesn't ask for sudo password

I have bought a VPS and installed Ubuntu 12.04 on it. However I needed a GUI, so I installed xubuntu-desktop packages and a vnc server. That part just works fine, I also created a user, and added it ...
0
votes
1answer
62 views

gksudo from a non sudoer?

I want to run gui applications that require admin privileges from gksudo/gksu on a non-sudoer account. Currently, I can just run sudo guiapplication from a sudoer tty, and will be able to display/use ...
3
votes
1answer
6k views

Open file or application as root from GUI

Is it possible to open a file or application as root from the GUI? My ideal would be right-clicking on a file or an application and seeing an "Open as Root" choice in the context menu, after which I ...
2
votes
2answers
3k views

Proper way to let user enter password for a bash script using only the GUI (with the terminal hidden)

I have made a bash script that uses kdialog exclusively for interacting with the user. It is launched from a ".desktop" file so the user never sees the terminal. It looks 100% like a GUI app (even ...
35
votes
2answers
3k views

Why user should never use normal sudo to start graphical application?

I've read the comunity "RootSudo" documentation and am interested in this line: You should never use normal sudo to start graphical applications as Root. Why? What is the difference? Please ...
0
votes
1answer
156 views

How can I run an autorun file as root with no gui

I set up a server using ubuntu with no gui. I need root for some tasks that I want to autorun on this server. Normally I would just use gksudo because autorun programs never seem to work with su or ...
0
votes
1answer
514 views

Why can I not use gksudo/sudo with any GUI program?

In my Ubuntu 12.04.2 with GNOME-Shell I'm not able anymore to run any graphical programs with gksudo or sudo. I always get an error like cannot open display I don't remember any particular changes ...
3
votes
1answer
53 views

Desktop environment agnostic method for prompting the user for a password?

In Gnome, there is gksudo. In KDE, there is kdesudo. Is there a command that can be run on any desktop environment that will prompt the user for the root password and then run a command?
2
votes
1answer
209 views

Is there a GUI to `visudo`?

Quite simply, is there a GUI to visudo I can recommend to other users, and use for myself? I have to set up a system where over 50 users have different sudo privileges and I need to juggle them all.
0
votes
1answer
343 views

I can't run graphical programs with sudo (Ubuntu 12.10)

If I try to run a program with GUI (e.g. Nautilus) as root, I'm just getting the following output: gksu nautilus Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations ...
1
vote
3answers
2k views

I cannot start graphical apps as root

I used to be able to do so, but something as simple as this fails now: gksudo gedit and this also fails: sudo gedit I receive the error: Cannot open display. I haved checked this: ...
42
votes
3answers
7k views

When to use pkexec vs. gksu/gksudo?

There are two general ways to run applications graphically as root (or, more generally, as another user). Programs like gksu, gksudo, and kdesudo are graphical frontends for sudo. In contrast, pkexec ...
2
votes
0answers
188 views

What's the difference between sudo and gksudo when launching graphical applications? [duplicate]

Possible Duplicate: What is the difference between “gksudo nautilus” and “sudo nautilus”? It is common to see in instructions, the terminal command to edit a file: ...
6
votes
3answers
3k views

How to run a Desktop graphical application just once under sudo?

For example, I'm trying to run Archive Manager from Ubuntu Desktop (10.04) under sudo otherwise it won't let me extract a Software Development Kit into /usr/local Update: I don't want sudo to be a ...