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

Multiple distros? #38

Closed YouveGotMeowxy closed 2 years ago

YouveGotMeowxy commented 2 years ago

I got this working with Ubuntu and love it, TY!

My next question is, I also have Kali installed, and ran the same exact setup instructions, but while it works in Ubuntu, it gets ignored in my Kali install. Do I have to do something different to have it work in both at the same time?

FernandoPerezLara commented 2 years ago

Hello, It's working for other distros, I installed on my WSL2 Fedora and it's working, just changed the path of /lib/security to /lib64/security (if you didn't have problems with the installation it's not necessary) and follow this https://github.com/nullpo-head/WSL-Hello-sudo#manual-configuration (this is very important)

YouveGotMeowxy commented 2 years ago

@FernandoPerezLara Thant worked, TYSM!

adding auth sufficient pam_wsl_hello.so did the trick.

now my /etc/pam.d/sudo for Kali Linux looks like this, and tested and working for both Kali and Ubuntu WSL2 at the same time. :D

$ cat /etc/pam.d/sudo
#%PAM-1.0

# Set up user limits from /etc/security/limits.conf.
auth       sufficient pam_wsl_hello.so
session    required   pam_limits.so

@include common-auth
@include common-account
@include common-session-noninteractive