Page 2 of 2

Re: pkexec and what to do??

Posted: Thu Aug 17, 2023 2:17 pm
by rijnsma11111
Ok, I understand there is no solution for this.
Then there's no other way (when necessary, not very often) in Linux than sudo and passwd in the terminal.

Thank you both for your patience ;)

Re: pkexec and what to do??

Posted: Thu Aug 17, 2023 3:00 pm
by l0dr3
rijnsma11111 wrote: Thu Aug 17, 2023 2:17 pm Ok, I understand there is no solution for this.
Then there's no other way (when necessary, not very often) in Linux than sudo and passwd in the terminal.

Thank you both for your patience ;)
Hi,

theres always a solution for everything in linux ;)

try ...

Code: Select all

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY geany
:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY featherpad
what happens?

greez

l0dr3

Re: pkexec and what to do??

Posted: Thu Aug 17, 2023 3:08 pm
by rijnsma11111
Thx 10dr3 ;)
I'm going into the experiment chamber. :happy:

Re: pkexec and what to do??

Posted: Thu Aug 17, 2023 4:42 pm
by Stevo
You don't have to run featherpad with sudo or as root. If you edit and save anything that needs elevated permissions, it will ask you for the password.

Re: pkexec and what to do??

Posted: Fri Aug 18, 2023 9:01 am
by rijnsma11111
Stevo wrote: Thu Aug 17, 2023 4:42 pm You don't have to run featherpad with sudo or as root. If you edit and save anything that needs elevated permissions, it will ask you for the password.
Of course Stevo, it was an example.
The point is that pkexec is a bit restricted and kdesu(do) and/or pksu(do) and/or su were not so.
So one can improvise but not when there would be a solution. I know.. security... With the terminal as a mediator between dektop and app it's is okay with me but it is not beautiful. No problem here. In the meantime I'm almost done with install and polish of the settings of my new MX 23. It is really great as far as I can see. ;)