Bug 492987 - Polkit prompt appears and immediately disappears when you have no password.
Summary: Polkit prompt appears and immediately disappears when you have no password.
Status: REPORTED
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.4
Platform: NixOS Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-11 19:37 UTC by Ilya Fedin
Modified: 2024-09-19 21:56 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Fedin 2024-09-11 19:37:53 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
I have no password, tried to use run0 inside yakuake, it spawned a window just to close it but that was enough for yakuake to lose focus and auto-close

STEPS TO REPRODUCE
1. Have no password
2. Trigger anything requiring polkit authentication (such as run0)

OBSERVED RESULT
Window appears and momentally disappears

EXPECTED RESULT
No window at all

SOFTWARE/OS VERSIONS
Operating System: NixOS 24.11
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 5.7 ГиБ of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: VivoBook_ASUSLaptop X421DA_M413DA
System Version: 1.0
Comment 1 Nate Graham 2024-09-19 21:08:17 UTC
When you say "I have no password", do you mean you've set your password to be blank? Or that you have somehow removed the password entirely through some means? These are different things, and while the former I believe is expected to work, the latter may result in undefined behavior.
Comment 2 Ilya Fedin 2024-09-19 21:39:00 UTC
I mean the latter. You can use passwd -d to remove it but not every distro works correctly with that due to pam configs. Perhaps the most simplest way to test it is Fedora since it allows to not to set password in first place on installation.