boltgolt / howdy

🛡️ Windows Hello™ style facial authentication for Linux
MIT License
5.89k stars 306 forks source link

Howdy do not start after a sudo command #953

Open hjfisch opened 2 months ago

hjfisch commented 2 months ago

I've managed Howdy to work on Mint 22 without any errors . I can save faces and test is working as normal . But after a sudo command , the camera will not turn on and I need to use the password .


I've searched for similar issues already, and my issue has not been reported yet.

Linux distribution (if applicable): Mint 22

Howdy version (sudo howdy version): 2.6.1

WGrav01 commented 2 months ago

Try adding the following to the top of your /etc/pam.d/system-auth file, if it exists:

auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient pam_python.so /lib/security/howdy/pam.py

For anyone using howdy 3.0.0 beta, use the following instead:

auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient /lib/security/pam_howdy.so
hjfisch commented 2 months ago

Sorry but there is no system-auth file . Is common-auth the same ?

hjfisch commented 2 months ago

I've tried it with common-auth , but still the same. The camera will not turn on and I need to use the password . It's weird ,because Howdy is working and shows no Bugs . Camera is turning on after sudo howdy add and is saving my face .

Beccio00 commented 1 month ago

You can try to look inside /var/log/auth.log after trying sudo. I had the same problem and I have solve it by modifying /lib/security/howdy/pam.py and following #799. But your problem depends on the error inside auth.log.

GKxxUCAS commented 1 month ago

@Beccio00 I ran sudo -i, the camera did not blink and I was asked to enter the password as usual. Then I checked /var/log/auth.log and found nothing related to howdy:

2024-10-21T16:11:53.866983+08:00 gkxx-redmi-ubuntu sudo:     gkxx : TTY=pts/1 ; PWD=/root ; USER=root ; COMMAND=/bin/bash
2024-10-21T16:11:53.867412+08:00 gkxx-redmi-ubuntu sudo: pam_unix(sudo-i:session): session opened for user root(uid=0) by gkxx(uid=1000)
Beccio00 commented 1 month ago

@GKxxUCAS Do you try to follow what is written in #799? Do you have the problem only when you ran sudo -i or also when you unlock the pc?