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

Always unlocks with no checks #12

Open
alba4k opened this issue Nov 20, 2024 · 6 comments
Open

Always unlocks with no checks #12

alba4k opened this issue Nov 20, 2024 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alba4k
Copy link

alba4k commented Nov 20, 2024

I've put the following in /etc/pam.d/sudo on arch


auth sufficient libpam_any.so { "mode": "One", "modules": { "login": "Password", "pam_howdy": "Face Recognition", "pam_fprintd": "Fingerprint" } }

auth		include		system-auth
account		include		system-auth
password	include		system-auth

And it looks like it's always just unlocking without checking either of those three options, immediately. Any idea of what could be causing this?

@alba4k
Copy link
Author

alba4k commented Nov 20, 2024

Looked into pam-random

What I put there as modules were the names of the files in /lib/security, removing .so from them. Do i need to create separate files in /etc/pam.d instead, that only have a single auth sufficient followed by the .so file I want to use with them?

@alba4k
Copy link
Author

alba4k commented Nov 20, 2024

Nope, that does not seem to be the issue. Only having the following also causes sudo to run withotu checking anything

immagine

@ChocolateLoverRaj ChocolateLoverRaj changed the title Always unlock with no checks Always unlocks with no checks Nov 20, 2024
@ChocolateLoverRaj ChocolateLoverRaj added the bug Something isn't working label Nov 20, 2024
@ChocolateLoverRaj
Copy link
Owner

Does this happen with pamtester sudo $USER authenticate?

@alba4k
Copy link
Author

alba4k commented Nov 20, 2024

Yep it does

pamtester: succesfully authenticated

@alba4k
Copy link
Author

alba4k commented Jan 8, 2025

@ChocolateLoverRaj ever got a chance to look into this?

@ChocolateLoverRaj
Copy link
Owner

Sorry, I forgot about this. I'm currently working on something else. I don't personally use this. I might look into this later. If you or anyone else wants to investigate this feel free to do so since there is a very small amount of code.

@ChocolateLoverRaj ChocolateLoverRaj removed their assignment Jan 8, 2025
@ChocolateLoverRaj ChocolateLoverRaj added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants