Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not being called in mate lockscreen #28

Closed
arifeinberg opened this issue Apr 26, 2018 · 18 comments
Closed

Module not being called in mate lockscreen #28

arifeinberg opened this issue Apr 26, 2018 · 18 comments
Labels
dependency Something isn't working but it's because of a dependency

Comments

@arifeinberg
Copy link

I'm running ubuntu-mate and I have howdy working normally when I sudo or login through lightdm, but when I lock my screen, I can only unlock with my password. The webcam never turns on when I get back to the lockscreen. My last computer (also ubuntu-mate) had a fingerprint reader with a similarly configured common-auth file, and the lock screen on that computer did take a fingerprint before asking for a password.

@boltgolt boltgolt added the bug Something isn't working label Apr 26, 2018
@boltgolt
Copy link
Owner

You seem to have a talent for discovering rare bugs ;)

I'm quite lost on this one, it might be handling sessions incorrectly? Does sudo -i work?

@boltgolt
Copy link
Owner

Also, could you take a look at the last lines in /var/log/auth.log?

@arifeinberg
Copy link
Author

sudo -i works fine, but here's auth.log when I log in from the screensaver:
Apr 26 17:58:11 bartlet /lib/security/howdy/pam.py[16770]: Can not open module: Permission denied

Fascinating - I wonder if my user is trying to call the module?

@arifeinberg
Copy link
Author

Changed permissions on pam.py to 750, but then when I went to unlock from screensaver saw this in auth.log:Apr 26 18:01:16 bartlet /lib/security/howdy/pam.py[17152]: File "/lib/security/howdy/pam.py", line 53, in pam_sm_authenticate
Apr 26 18:01:16 bartlet /lib/security/howdy/pam.py[17152]: return doAuth(pamh)
Apr 26 18:01:16 bartlet /lib/security/howdy/pam.py[17152]: File "/lib/security/howdy/pam.py", line 19, in doAuth
Apr 26 18:01:16 bartlet /lib/security/howdy/pam.py[17152]: if config.get("core", "disabled") == "true":
Apr 26 18:01:16 bartlet /lib/security/howdy/pam.py[17152]: File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
Apr 26 18:01:16 bartlet /lib/security/howdy/pam.py[17152]: raise NoSectionError(section)
Apr 26 18:01:16 bartlet /lib/security/howdy/pam.py[17152]: NoSectionError: No section: 'core'

@boltgolt
Copy link
Owner

Both should be impossible, what does your config.ini look like?

@arifeinberg
Copy link
Author

arifeinberg commented Apr 26, 2018

@arifeinberg
Copy link
Author

So I changed the permissions of the howdy directory to 755, then tried again. Now howdy runs, and the login window says I've been identified, but then it still won't let me in without a password. auth.log:
Apr 26 18:18:09 bartlet /lib/security/howdy/pam.py[19603]: Traceback (most recent call last):
Apr 26 18:18:09 bartlet /lib/security/howdy/pam.py[19603]: File "/lib/security/howdy/pam.py", line 53, in pam_sm_authenticate
Apr 26 18:18:09 bartlet /lib/security/howdy/pam.py[19603]: return doAuth(pamh)
Apr 26 18:18:09 bartlet /lib/security/howdy/pam.py[19603]: File "/lib/security/howdy/pam.py", line 38, in doAuth
Apr 26 18:18:09 bartlet /lib/security/howdy/pam.py[19603]: pamh.conversation(pamh.Message(pamh.PAM_TEXT_INFO, "Identified face as " + pamh.get_user()))
Apr 26 18:18:09 bartlet /lib/security/howdy/pam.py[19603]: PamException: Conversation error

@boltgolt boltgolt added the dependency Something isn't working but it's because of a dependency label Apr 30, 2018
@boltgolt
Copy link
Owner

boltgolt commented May 4, 2018

For anyone having the same issue: @arifeinberg has opened a ticked in the PAM library here.

@sd65
Copy link

sd65 commented Jun 11, 2018

So I have a workaround. Please note I'm using Cinnamon Screensaver (should work on Mate too).

First as you said:
sudo chmod -R 755 /lib/security/howdy/

Then:
sudo howdy config
And set no_confirmation to true.

It's crashing when sending the confirmation message, so disabling it makes the trick. :)

@boltgolt boltgolt removed the bug Something isn't working label Jun 11, 2018
@boltgolt
Copy link
Owner

Thanks so much for figuring this out! I'll add it to the FAQ if i ever get around to writing it.

@Tatsh
Copy link

Tatsh commented Jan 6, 2019

I ran into this issue. The models directory and the files inside must be world-readable.

@papermache
Copy link

So I have a workaround. Please note I'm using Cinnamon Screensaver (should work on Mate too).

First as you said:
sudo chmod -R 755 /lib/security/howdy/

Then:
sudo howdy config
And set no_confirmation to true.

It's crashing when sending the confirmation message, so disabling it makes the trick. :)

Can confirm this works on Cinnamon.

@djshaji
Copy link

djshaji commented Jan 31, 2020

This does not work on Fedora release 32 (Rawhide) Mate 1.22.3

sudo works, LightDM works, but not the mate lockscreen. I tried making /lib64/security/howdy 0775, but it doesn't work. I've got no /var/log/auth either. Any other ideas?

@exander77
Copy link

Is this secure, to have these files world readable?

@boltgolt
Copy link
Owner

Readable shouldn't be a big issue, but don't make it writable

@kamushadenes
Copy link

kamushadenes commented Jan 25, 2021

Can confirm making /lib/security/howdy/ world-readable solved an issue I was facing with swaylock.

Can this be the default?

@bananasmoothii
Copy link

Hi, I got this issue with clearing all faces (sudo howdy clear) and creating models with the -U flag (sudo howdy -U <username> add)

@gutierri
Copy link

gutierri commented Aug 31, 2021

This problem appeared to me (Debian 10 + Mate). I believe a fix for cinnamon/mate would be good, the question is whether it is only in these environments (screensavers) that it happens.

I documented this solution on the wiki¹ (common issues).

Could we keep this issue open? The problem hasn't really been solved, the suggestions are just a temporary solution, right?

[1] - https://github.com/boltgolt/howdy/wiki/Common-issues#howdy-pam-module-does-not-load-on-screensaver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Something isn't working but it's because of a dependency
Projects
None yet
Development

No branches or pull requests

10 participants