nullpo-head / WSL-Hello-sudo

Let's sudo by face recognition of Windows Hello on Windows Subsystem for Linux (WSL). It runs on both WSL 1 and WSL 2. This is a PAM module for Linux on WSL.
MIT License
1.22k stars 46 forks source link

Windows Hello Face doesn't work #45

Open ssg opened 2 years ago

ssg commented 2 years ago

Windows Hello Face enters a face scanning loop and starts responding with "something went wrong, try again" after a couple of retries. Canceling the prompt cancels the installation.

+ sudo echo 'win_mnt = "/mnt/c"'
+ sudo tee -a /etc/pam_wsl_hello/config
win_mnt = "/mnt/c"
+ set +x
Please authenticate yourself now to create a credential for '*********' and '*********' pair.
+ pushd /mnt/c/Users/*********/AppData/Local/Programs/wsl-hello-sudo
/mnt/c/Users/*********/AppData/Local/Programs/wsl-hello-sudo ~/release
+ ./WindowsHelloBridge.exe creator pam_wsl_hello_*********
Error: The user cancelled.
+ test 176 = 171
lenowng commented 2 years ago

I faced similar issue as well (valid issue), but I have bypassed that by selecting more choices -> 'Pin' when windows hello auth was prompted during installation.

then just run sudo pam-auth-update after the installation, enable Windows Hello and things should be working.

ssg commented 2 years ago

@lenowng That workaround worked, thanks! It should be put into the official docs, IMHO.