Code Monkey home page Code Monkey logo

Comments (18)

sd65 avatar sd65 commented on July 3, 2024 33

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. :)

from howdy.

djshaji avatar djshaji commented on July 3, 2024 6

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?

from howdy.

boltgolt avatar boltgolt commented on July 3, 2024 4

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

from howdy.

kamushadenes avatar kamushadenes commented on July 3, 2024 1

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

Can this be the default?

from howdy.

boltgolt avatar boltgolt commented on July 3, 2024

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?

from howdy.

boltgolt avatar boltgolt commented on July 3, 2024

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

from howdy.

arifeinberg avatar arifeinberg commented on July 3, 2024

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?

from howdy.

arifeinberg avatar arifeinberg commented on July 3, 2024

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'

from howdy.

boltgolt avatar boltgolt commented on July 3, 2024

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

from howdy.

arifeinberg avatar arifeinberg commented on July 3, 2024

https://pastebin.com/ziYiQZbF

from howdy.

arifeinberg avatar arifeinberg commented on July 3, 2024

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

from howdy.

boltgolt avatar boltgolt commented on July 3, 2024

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

from howdy.

Tatsh avatar Tatsh commented on July 3, 2024

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

from howdy.

papermache avatar papermache commented on July 3, 2024

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.

from howdy.

exander77 avatar exander77 commented on July 3, 2024

Is this secure, to have these files world readable?

from howdy.

boltgolt avatar boltgolt commented on July 3, 2024

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

from howdy.

bananasmoothii avatar bananasmoothii commented on July 3, 2024

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

from howdy.

gutierri avatar gutierri commented on July 3, 2024

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

from howdy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.