howdy
howdy copied to clipboard
When switching user, logging in does not work (sddm)
Please describe the issue in as much detail as possible, including any errors and traces.
If your issue is a camera issue, be sure to also post the image generated by running sudo howdy snapshot
.
When switching user, logging in does not work (sddm)
I've searched for similar issues already, and my issue has not been reported yet.
Linux distribution (if applicable):kubuntu
Howdy version (Howdy 2.6.1
):
note tested in a vm with kubuntu 21.10
That's an issue with the greeter you are using unfortunately. Just a broken PAM setup that doesn't trigger Howdy correctly
So, a problem with kubuntu?
It almost always is in these cases. What could help is changing the permissions on the Howdy folder to be world readable
Actually in this case I believe this isn't the issue with PAM setup. It's about a wrong assumption on the Howdy side: the pam stack is not always run as root.
For example, the plasma screen locker uses another program kcheckpass
, which then invokes pam to do the actual checking. When kcheckpass
is linked with PAM, it is just a normal program without SUID bit set, so it will run as the normal user it's invoked from.
For sddm, I'm not sure, though. SDDM uses sddm-helper
, which then call into PAM, and usually SDDM is run as root. So it should work regardless. But maybe a different setup/distribution may choose to run sddm-helper as some other user.
See this for more details about the user the PAM stack is running as.
what do i do then.
See if it also happens if you just lock screen and can't use it. I applied 755 permissions to howdy and adjusted 2 config files. https://github.com/boltgolt/howdy/issues/219#issuecomment-674606116 - this may help, if it's the same issue.
$sudo chmod -R 755 /lib/security/howdy
insert auth sufficient pam_python.so /lib/security/howdy/pam.py
to /etc/pam.d/kde
and /etc/pam.d/system-auth