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

Module is unknown #2

Open
jankal opened this issue Nov 2, 2018 · 1 comment
Open

Module is unknown #2

jankal opened this issue Nov 2, 2018 · 1 comment

Comments

@jankal
Copy link

jankal commented Nov 2, 2018

I ran the installer script and verified the existence of pam_wsl_hello.so in /lib/x86_64-linux-gnu/security/. The file is there. Permissions all seem alright.

For debugging purposes, I added

auth       required   /lib/x86_64-linux-gnu/security/pam_wsl_hello.so

to /etc/pam.d/su.
Even with the absolute path, the same error occurs: su: Module is unknown

Output of uname -a:

Linux LAPTOP-RUJJI7SM 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 GNU/Linux

Windows version: 10.0.17134 Build 17134
MD5Sum:
8ee75aee1cc9531bafa689d8c12ac9e3 /lib/x86_64-linux-gnu/security/pam_wsl_hello.so

What am I missing here?

@thgeorgiou
Copy link

Hello! I've had the same problem on Fedora in WSL. It worked when I compiled pam_wsl_hello.so from source.

  1. Install build dependencies: dnf install cargo pam-devel
  2. Build only the PAM module make build/pam_wsl_hello.so
  3. Copy to the correct directory: sudo cp build/pam_wsl_hello.so /usr/lib64/security/pam_wsl_hello.so
  4. Add auth sufficient pam_wsl_hello.so to the top of /etc/pam.d/sudo.

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

2 participants