howdy icon indicating copy to clipboard operation
howdy copied to clipboard

When switching user, logging in does not work (sddm)

Open lnee94 opened this issue 2 years ago • 6 comments

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

lnee94 avatar Jan 08 '22 16:01 lnee94

That's an issue with the greeter you are using unfortunately. Just a broken PAM setup that doesn't trigger Howdy correctly

boltgolt avatar Jan 18 '22 15:01 boltgolt

So, a problem with kubuntu?

lnee94 avatar Jan 20 '22 00:01 lnee94

It almost always is in these cases. What could help is changing the permissions on the Howdy folder to be world readable

boltgolt avatar Jan 20 '22 21:01 boltgolt

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.

Aetf avatar Jan 21 '22 02:01 Aetf

what do i do then.

lnee94 avatar Feb 02 '22 22:02 lnee94

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

sneakyjoeru avatar Feb 21 '23 19:02 sneakyjoeru