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

Include pam-configs file? #14

Closed oxc closed 3 years ago

oxc commented 3 years ago

On Ubuntu, you can easily include the required pam settings by creating the following file:

/usr/share/pam-configs/wsl-hello-sudo

Name: WSL Hello authentication
Default: no
Priority: 260
Auth-Type: Primary
Auth:
        [success=end default=ignore]    pam_wsl_hello.so

Then you can call sudo pam-auth-update and select the entry from the checkbox list. The resulting file will include the required PAM config entries without creating any conflicts with other authentication methods.

Perhaps it would make sense to include that file in the install script?