Bug 423915 - KScreen locker does not play nice with systemd-homed
Summary: KScreen locker does not play nice with systemd-homed
Status: RESOLVED NOT A BUG
Alias: None
Product: kscreenlocker
Classification: Unmaintained
Component: kcheckpass (other bugs)
Version First Reported In: unspecified
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-05 22:23 UTC by Matthew
Modified: 2020-12-29 17:57 UTC (History)
5 users (show)

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


Attachments
my kscreenlocker test results and two pam files rolled into one because i can't submit multiple files (5.87 KB, text/plain)
2020-07-05 22:23 UTC, Matthew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew 2020-07-05 22:23:54 UTC
Created attachment 129927 [details]
my kscreenlocker test results and two pam files rolled into one because i can't submit multiple files

SUMMARY
When using systemd-homed, I cannot log into my machine after it is locked with kscreenlocker. SDDM greeter seems to work okay, although not perfectly. SDDM freezes on loading if I try to switch users to myself after a failed unlock from kscreenlocker. In general kde/plasma does not recognize my user. I had to edit PAM to get it to work at all. changed/added PAM files are include, which may have issues of their own as i am unfamiliar with PAM.
I don't get any errors from sddm or systemd-homed in journalctl when I run i have attached the output of kscreenlocker_greet --testing.

STEPS TO REPRODUCE
1. install os, do not create a user (this step could probably be skipped)
2. enable systemd-homed 
3. create user using homectl
4. edit PAM to allow sddm to even attempt logging in
5. log in
6. lock screen
7. try to unlock screen

OBSERVED RESULT
gets an "unlock failed" response

EXPECTED RESULT
session unlocks properly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: linux kernel 5.7
KDE Plasma Version: kde plasma 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
running manjaro with systemd-homed enabled and in use.
os installed with manjaro using manjaro architect with the minimal kde package
Comment 1 Sebastian Hirsch 2020-12-26 13:34:35 UTC
I cannot reproduce this issue with Arch Linux. I installed the system with zen-installer and created a user with systemd-homed. I can unlock the lockscreen like always
Comment 2 David Edmundson 2020-12-26 14:59:02 UTC
kscreenlocker goes through PAM correctly. Anything else is a downstream issue, unless shown otherwise.

I would suggest you start by checking those are the correct pam files, by default kscreenlocker uses /etc/pam.d/kde which then includes some other auth files, but it gets very distro-dependent.
Comment 3 Matthew 2020-12-29 17:57:21 UTC
You are correct, it does work fine now. Not sure what it was that was giving me an issue before but it seems to be resolved now. Thank you!