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

Howdy do not start after a sudo command #953

Open
hjfisch opened this issue Aug 30, 2024 · 8 comments
Open

Howdy do not start after a sudo command #953

hjfisch opened this issue Aug 30, 2024 · 8 comments

Comments

@hjfisch
Copy link

hjfisch commented Aug 30, 2024

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
Copy link

WGrav01 commented Sep 1, 2024

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
Copy link
Author

hjfisch commented Sep 5, 2024

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

@hjfisch
Copy link
Author

hjfisch commented Sep 5, 2024

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
Copy link

Beccio00 commented Oct 3, 2024

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
Copy link

@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
Copy link

@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?

@joezhouchenye
Copy link

I don't even have a /lib/security or /usr/lib/security directory. I manually installed the 3.0.0 beta version.

@joezhouchenye
Copy link

My system is Ubuntu 24.04. If you build manually, the howdy program has been changed a lot. I found out that howdy no longer uses pam.py and it now uses C# to implement pam feature. Also, if you use meson install -C build to install, the installation path is completely different.

In pam profiles are in /etc/pam.d, you can just modify the common-auth as other files have @include common-auth.

Adding auth sufficient /usr/local/lib/x86_64-linux-gnu/security/pam_howdy.so on the top of common-auth works for me. However, the login has an unknown error 1 and this problem is similar to the below comment.

#711 (comment)

I haven't tried the Configure SELinux to allow Howdy to access cameras when logging in part because I don't want to do something that I am not familiar with and don't know how to undo the process.

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

No branches or pull requests

5 participants