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

Instructions please? #10

Closed
LoneWolf4713 opened this issue Jul 9, 2024 · 6 comments · Fixed by #11
Closed

Instructions please? #10

LoneWolf4713 opened this issue Jul 9, 2024 · 6 comments · Fixed by #11
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@LoneWolf4713
Copy link

hey, Just want to setup this with Howdy. could you please provide just a little instructions as to what should I do? or where do the files go? I know somethings but as they say little knowledge is worse than no knowledge. So could you please provide some instructions to set this up!

@ChocolateLoverRaj ChocolateLoverRaj added the documentation Improvements or additions to documentation label Jul 9, 2024
@ChocolateLoverRaj ChocolateLoverRaj self-assigned this Jul 9, 2024
@ChocolateLoverRaj
Copy link
Owner

I added some instructions. Let me know if you have any questions. What are you trying to authenticate with Howdy? sudo?

@ChocolateLoverRaj
Copy link
Owner

Instructions are at #11 btw

@LoneWolf4713
Copy link
Author

hey, thanks for the instructions! I tried and it's somewhat successful.
I understood from your instructions that in the JSON next to libpam_any.so, we have to put PAM Modules, so I kept the first one login as is and changed the second one to howdy

I created a file for howdy with this in it ->

#%PAM-1.0
auth            sufficient      pam_python.so /lib/security/howdy/pam.py

and this is my sudo file in /etc/pam.d/ ->

#%PAM-1.0
auth            sufficient      libpam_any.so { "mode": "One", "modules": { "login": "Password", "howdy": "Facial Recog" } }
auth            include         system-auth
account         include         system-auth
session         include         system-auth

however, when I tried to run this, it goes into an infinite loop, even if I type the correct password. here ->

[Facial Recog] Identified face as prtyksh
[sudo] password for prtyksh:

so I changed login module to system-auth because it was in my sudo file, well then, even if howdy identifies the face, it doesn't authenticate but if I type the correct password it works: (I did sudo su)

[Facial Recog] Identified face as prtyksh
[sudo] password for prtyksh:
[root@neo prtyksh]#

so what am I doing wrong? I guess pam-any is working well but somehow howdy doesn't authenticate even on finding the correct face.
again, thank you for looking into this. I highly appreciate that.

@ChocolateLoverRaj
Copy link
Owner

I think there may be a bug with pam-any. Does pamtester howdy $USER authenticate authenticate with Howdy as expected? Does pamtester sudo $USER authenticate also result in the infinite loop?

@LoneWolf4713
Copy link
Author

yes, pamtester howdy $USER authenticate authenticates with howdy as expected and pamtester sudo $USER authenticate results in a infinite loop too.

@ChocolateLoverRaj
Copy link
Owner

What exactly happens when it goes into a infinite loop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants