Bug 504415

Summary: Leaving password field blank on installation proccess causing problem with unlocking
Product: [KDE Neon] neon Reporter: llyasasnou
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs>
Status: REPORTED ---    
Severity: grave CC: jr, nate, neon-bugs
Priority: VHI    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description llyasasnou 2025-05-17 12:58:18 UTC
SUMMARY
Won't let me to log in while my account doesn't have a password

STEPS TO REPRODUCE
1. The account must be without the password
2. Lock the screen
3. Try log in

OBSERVED RESULT
"Unlocking failed" error

EXPECTED RESULT
Logging in without any error


SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
The only possible way for me is to log in with the "Switch user".
Comment 1 Nate Graham 2025-05-19 16:12:50 UTC
The Users KCM doesn't let you do this, so I assume you removed the password on your account using `passwd` on the command line, right?

I tried to do that on Fedora 42 but it actually wouldn't let me set a blank password!

Can you confirm how exactly you've got your system set up and how you did it?
Comment 2 llyasasnou 2025-06-01 10:25:18 UTC
(In reply to Nate Graham from comment #1)
> The Users KCM doesn't let you do this, so I assume you removed the password
> on your account using `passwd` on the command line, right?
> 
> I tried to do that on Fedora 42 but it actually wouldn't let me set a blank
> password!
> 
> Can you confirm how exactly you've got your system set up and how you did it?

I didn't set a password when installing the system. The installer of KDE Neon let me set up an account without a password.
Comment 3 Nate Graham 2025-06-04 17:52:18 UTC
In git master, I can't reproduce this. If I delete my user password with `passwd -d $USER`, then:
1. If I lock manually with Meta+L, it unlocks immediately.
2. If I wait for it to lock based on inactivity, then right after the "Delay before password required" duration, it unlocks immediately.
3. If I wait for it to lock based on inactivity and try to unlock during the "Delay before password required" duration, it unlocks immediately.

Are you perhaps suffering from Bug 505173, in which you can't unlock during the the "Delay before password required" duration?

Can you paste the contents of /etc/pam.d/kde?
Comment 4 llyasasnou 2025-06-08 09:41:12 UTC
(In reply to Nate Graham from comment #3)
> In git master, I can't reproduce this. If I delete my user password with
> `passwd -d $USER`, then:
> 1. If I lock manually with Meta+L, it unlocks immediately.
> 2. If I wait for it to lock based on inactivity, then right after the "Delay
> before password required" duration, it unlocks immediately.
> 3. If I wait for it to lock based on inactivity and try to unlock during the
> "Delay before password required" duration, it unlocks immediately.
In this case, yes, it unlocks properly, but in my case (I repeat that KDE neon installer (Calamares 3.3.14) let me install the system even when I left the password fields blank in "Users" step), it doesn't. So maybe problem on KDE neon side.
https://cdn.discordapp.com/attachments/701452745084764194/1381164923375063050/VirtualBoxVM_pcrkckiazu.gif?ex=68468592&is=68453412&hm=9d2dde260c9ad9e1171586d1d0607d13169b90ca44634dea0739e98f38e49a38&

> Can you paste the contents of /etc/pam.d/kde?
I don't have that file.
Comment 5 Nate Graham 2025-06-09 16:11:58 UTC
That's probably a big part of the problem. Moving to Neon.
Comment 6 Bug Janitor Service 2025-06-24 03:47:42 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 llyasasnou 2025-07-11 07:24:19 UTC
Rephrased issue

SUMMARY
Leaving password field blank on installation proccess causing problem with unlocking

STEPS TO REPRODUCE
1. Leave the password field blank during the installation proccess
2. Lock the screen after install
3. Try log in

OBSERVED RESULT
"Unlocking failed" error

EXPECTED RESULT
Logging in without any error


SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
The only possible way is to log in with the "Switch user".