Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-08-28 01:08:37

johnywhy
Member
Registered: 2011-10-09
Posts: 151

How to make custom gksudo accessible to non-sudo "Desktop" user?

My Mint 19 xfce doesn't have gksudo. I created a new one with:

echo '/usr/bin/pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $@'|sudo tee /usr/local/bin/gksudo;chmod +x /usr/local/bin/gksudo

https://forums.linuxmint.com/viewtopic. … 5#p1518125

Problem is, i login as a non-sudo "Desktop user". non-sudo users can't use it.

$ gksudo firefox 
Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /home/johny/.Xauthority which is owned by johny.)

Why? How to make it work for non-sudo users? i think i need to do something to polkit.

Last edited by johnywhy (2018-08-28 01:11:33)


Mint 19 xfce, 4.15.0-29-generic #31-Ubuntu SMP, x86_64 x86_64 x86_64 GNU/Linux

Offline

#2 2018-08-28 01:28:23

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,661

Re: How to make custom gksudo accessible to non-sudo "Desktop" user?

The Arch wiki polkit page is pretty comprehensible. You'll need to create a new authorization rule in this particular case.

Offline

Board footer

Powered by FluxBB