DevHeads.net

KDE Partition Manager - do we need to add this to our packaging? or is this a KDE bug

Yesterday (or so) in #kubuntu:

[01:15] <ubottu> pkexec is a PolicyKit tool that allows an authorized user
to run (graphical) applications as another user. To run a graphical
application (e.g. gedit) which can write to the entire filesystem, use e.g.
"pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit /etc/environment"

[01:19] <pragomer> diogenes_: kde's partitionmanager gets no root
privileges when I enter the kdesu password; thats my problem and a know bug
as it seems

[01:21] <OerHeks> you stated you see no disks after password..
[01:24] --> salsa4life (~ ... at 2 dot 57.100.21) has joined this channel.
[01:24] <diogenes_> pragomer, as suggested: pkexec env DISPLAY=$DISPLAY
XAUTHORITY=$XAUTHORITY <app name> /etc/environment

[01:42] <pragomer> diogenes_: it worked. after i executed pkexec the app
now works also as normal. thank you all very much. awesome community. very
kind

Valorie

Comments

Re: KDE Partition Manager - do we need to add this to our packag

By Walter Lapchynski at 08/10/2019 - 19:45

Including lubuntu-devel because they're shipping it, too.

That said, I've done no extensive testing of this application across various versions but I do know I had it open and it was working correctly in Eoan just the other day. Does this affect a particular version?

I have noticed that the transition to using `pkexec` has been a little rocky, so perhaps in an older version it was an issue?

On August 10, 2019 5:13:13 PM PDT, Valorie Zimmerman <valorie. ... at gmail dot com> wrote:

Re: KDE Partition Manager - do we need to add this to our packag

By Valorie Zimmerman at 08/11/2019 - 03:25

Thanks !

That said, I've done no extensive testing of this application across
I didn't include the part of the conversation where the original poster
said he invoked with kdesu nor when he started it as a regular user and
then gave his password when prompted. None of his disks showed up.

PKEXEC which is what I suggested was the only thing that worked for him.
The early conversation:

[22:24] <pragomer> Hi. In kubuntu 18.04.2 the kde-partition-manager does
not start with root privileges. how can I fix this?

[23:55] <valorie> pragomer: if an application needs root privs it will give
you a input screen for your password
[23:56] <valorie> it is a bad idea to start applications in "root"
[23:56] <valorie> !root
[23:56] <ubottu> Do not try to guess the root password, that is impossible.
Instead, realise the truth... there is no root password. Then you will see
that it is 'sudo' that grants you access and not the root password. Look at
<a href="https://help.ubuntu.com/community/RootSudo" title="https://help.ubuntu.com/community/RootSudo">https://help.ubuntu.com/community/RootSudo</a>

23:57] <pragomer> valorie: hi.. yes kde partitionmanager gives me the kdesu
box, I input the correct pw but I dont see any disks.. I read about that
the program wants to function without root privileges in the future, but in
my case this does not work
[23:58] <pragomer> perhaps someone could check this
[23:58] <valorie> well, kpm is under active development
[23:59] <OerHeks> you might not see disks if it is an UEFI bios machine,
boot in uefi mode.
[23:59] <pragomer> its mbr mode, not uefi
[23:59] <OerHeks> oke uefi ruled out
[00:00] <pragomer> I actually have to use "sudo partitioinmanager" instead
of kdesu for beeing able to use it

[00:00] <valorie> that's a bad idea
[00:00] <valorie> :(
[00:00] <valorie> !sudo
[00:00] <ubottu> sudo is a command to run command-line programs with
superuser privileges ("root") (also see !cli). Look at
<a href="https://help.ubuntu.com/community/RootSudo" title="https://help.ubuntu.com/community/RootSudo">https://help.ubuntu.com/community/RootSudo</a> for more information. For
graphical applications see !pkexec (for older releases: !gksu and
!kdesudo). If you're unable to execute commands with sudo see:
<a href="http://www.psychocats.net/ubuntu/fixsudo" title="http://www.psychocats.net/ubuntu/fixsudo">http://www.psychocats.net/ubuntu/fixsudo</a>
[00:01] <pragomer> valorie: I know about sudo ;-) but kdesu does not work
actually

[00:01] <valorie> running gui applications using sudo will make hash of
your permissions
[00:01] <valorie> have you tried pkexec?
[00:02] <valorie> if that works but inputting your passw doesn't, then i
would file a bug report