boltgolt / howdy

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

Howdy doesn't activate camera when running example "sudo -i" #310

Closed corndog2000 closed 4 years ago

corndog2000 commented 4 years ago

I installed Howdy successfully through Pamac via AUR. I was able to successfully add multiple faces and sudo howdy test correctly displays my webcam video feed. The test feature also draws a black circle correctly around my face. But, when I try to use howdy to authenticate the web camera does not turn on. I tried the example sudo -i in a new terminal window but it just prompts me for the password. The indicator light does not turn on by my web camera like it did when running sudo howdy add.

The test feature lists a recognition time of 93 ms with an average FPS of 10.


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

Linux distribution (if applicable): Manjaro Linux 18.1.5 KDE Plasma Version: 5.17.5 KDE Frameworks Version: 5.66.0 Qt Version: 5.14.0 Kernel Version: 5.4.15-2-MANJARO Machine: Thinkpad X1 Carbon Gen 7

Howdy version: 2.5.1-2

corndog2000 commented 4 years ago

Solved it. From the wiki page "In order for Howdy to authenticate a user, a small change must be added to any PAM configuration file where Howdy might want to be used. The following line must be added to any configuration file:"

You have to add auth sufficient pam_python.so /lib/security/howdy/pam.py to /etc/pam.d/sudo.