KDE su won't remember password

Hello,

I have a fresh install of OpenSUSE Tumbleweed with KDE Plasma 6.3.5.

Every time I open an app which needs root privileges (such as myrlyn) I’m greeted by the KDE su window to enter my password.
Even if I tick “Remember my password”, this does not have any effects, and the next time I’m asked for my password again.

Any idea on how to ensure the “Remember my password” setting in KDE su is honoured?

Thanks!

Hi, welcome to the forum.

Seems to be a known issue:

There are ways to accomplish this differently but they are not that easy as kicking a checkbox. Security wise, it would be to do it per application, i.e. for myrlyn specifically.

As side remark, I do not (longer?) see a “Remember my password” when executing pkexec echo hello

Thank you.

So, if I understand correctly, there isn’t an easy fix for this, and this is actually a bug that should be fixed upstream by KDE (by fixing KDE su) and/or by openSUSE (by replacing KDE su with polkit-kde).

Or is there a way I can make the switch globally for all applications myself?

To me, that’s not a bug, it’s a security feature. I will run away from anything that proposes to store the root password.

1 Like

A security feature would be not having the tickbox in the first place; having it, but in a non-working state, is definitely a bug.

1 Like

Agreed that a non-working tick-box is not good.

I just set a relatively short password for root while my /home is encrypted with a good password/passphrase.

For a relevant discussion see:

1 Like

I just tried it on 20250410 and the second time I launch the same application I get no password request. That’s plasma 6.3.4.

Nobody was talking about storing the root password.

Remember without storing it???

Interesting. I haven’t tried on 6.3.4 as this is a fresh install.

Can you confirm which application you’re launching and whether it’s truly the KDE su window that pops up?

Is that so impossible? F.e. in RAM, for a limited time?

It has always been this way the tickbox allows a short window of time to use the program again without reentering. You must always enter root password to gain root access. If other wise we would just rename OS Windows

1 Like

Chances are, this is related to the current bug in KDE Wallet. It has been fixed, but with the infrastructure issues, it’s going to take a day or two to hit the repositories.

1 Like

I would not think so. kdesu cannot store the password in the user’s wallet, it is like @gogalthorp describes and always has been.

Maybe this is still relevant? https://forums.opensuse.org/t/want-longer-root-password-timeout/80222

YaST from menu, yes it is kdesu and it still works after update to the latest snapshot 20250515.

Derogatory comments about something you do not use and do not understand belong to the Open Chat at best, not to the technical support forum.

1 Like

I wouldn’t normally think so either, but the kwallet bug has been screwing up a bunch of stuff that kwallet has nothing to do with it, like the xdg-desktop-portal issues, by creating a race condition.

Fvogt and I did a debugging session yesterday, and fixing kwallet fixed a whole bunch of other regressions that appeared with Plasma 6.3.5

Note: This is just a suspicion, to be clear. I don’t actually ever use kdesu for anything, so I haven’t a clue if it’s actually tied into this or not.

1 Like

Remember password?

The explanation how this feature works:
https://docs.kde.org/stable5/en/kde-cli-tools/kdesu/sec-password-keeping.html

2 Likes