[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo in X-environment -- polkit solution



Hi,

I am wondering why you even need to use wrapper explicitly?

On Sat, May 03, 2014 at 12:43:17PM +0200, Ralf Mardorf wrote:
> On Sat, 2014-05-03 at 06:29 -0400, Tom H wrote:
> > Thanks. As I said earlier, I consider this a bug. What's the point of
> > using gksu/gksudo if you have do use a wrapper that you could use
> > around su/sudo?

If I type "system-config-printer" to my user shell, I get GUI running
with root privilege :-)
 
> You still will get a GUI to enter the password. 

Yes, I enter my user password.

> When running su/sudo by
> a launcher, you at least need to run it in a terminal emulation.

No.  GUI program or console program without fancy wrapper can start with
the proper privilege, here.

> > Maybe pkexec is the solution?

Yes.

Did you add yourself as a member of "sudo" group?
 https://www.debian.org/doc/manuals/debian-reference/ch04.en.html#_policykit
 4.6.2. PolicyKit

    PolicyKit is an operating system component for controlling system-wide
    privileges in Unix-like operating systems.
    
    Newer GUI applications are not designed to run as privileged processes.
    They talk to privileged processes via PolicyKit to perform
    administrative operations.
    
    PolicyKit limits such operations to user accounts belonging to the sudo
    group on the Debian system.

I think this is helping me :-)  

(The above text may be obsoleted soon by logind.)

Regards,

Osamu


Reply to: