Xfce Forum

Sub domains
 

You are not logged in.

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

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

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)


arch xfce x86_64

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,492

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.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 535.22 KiB (Peak: 550.49 KiB) ]