Open rayzorben opened 3 years ago
DEFINITELY dot not remove the other 3 lines for sudo, this could break your whole installation if you're not careful. I guess your issue is with the python 3.8 installation, have you tried reinstalling that or switching to python 3.6?
@boltgolt python 3.8 is what it comes with, unfortunately I can't test 3.6 without significant effort
Clear Linux versions bundles for the whole operating system. It is not possible to downgrade individual packages. You would have to either build the package yourself, rollback the whole operating system to an older version, or wait for a fix from our team
It would be easier to fix it to work with 3.8, but i'm not even sure where to start. Are there some basic tests I can do to isolate the issue?
So I got face recognition working for sudo, no luck yet with gdm.
Seems pam-python is embedding python3.8 and trying to embed libpython3.8.a. When I switch that to libpython3.8.so it works. Not sure if that is the right thing to do.
So I got face recognition working for sudo, no luck yet with gdm.
Seems pam-python is embedding python3.8 and trying to embed libpython3.8.a. When I switch that to libpython3.8.so it works. Not sure if that is the right thing to do.
Encountered a similar situation. You can see my 'pam.d/sudo' file below. However, I can't make it work for sudo.
#%PAM-1.0 auth sufficient libpython3.8.so /lib/security/howdy/pam.py auth include system-auth account include system-auth session include system-auth
Just looking for an install script that could apply across any distro. If not possible, just some guidance for Clear Linux.
I tried getting it working, and used the Fedora installer as a guide.
/lib/security/howdy
.dat
files to/lib/security/howdy/dlib-data
install -Dm 0644 fedora/com.github.boltgolt.howdy.policy
to/usr/share/polkit-1/actions
/usr/bin/howdy
to/lib/security/howdy/cli.py
numpy, opencv-python, dlib
import ConfigParser
is nowimport configparser
compare.py, pam.py, snapshot.py
were not executable, so I made themchmod +x
#!/usr/bin/env python3
to themStill wasn't working, so I tried adding the
/etc/pam.d
files as mentioned in the Arch Linux wiki. For example,sudo
When I try to run
sudo su -
it just prompts me for my password, no face recognition.If I remove the bottom 3 lines, I get an error
sudo: account validation failure, is your account locked?
Found out that pam_python.so was missing. Downloaded python 3 version from https://sourceforge.net/u/anders_blomdell/pam-python/ci/py3/tree/ and built it. Copied the resulting file to
/usr/lib64/security/pam_python.so
Now i'm stuck, when I try to authenticate, I get this in the syslog:
/lib/security/howdy/pam.py[4625]: Can't load python library libpython3.8.a: /usr/lib64/libpython3.8.a: invalid ELF header