You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Any idea why on WSL2 PAM modules are not loaded on login (for example pam_env)? #49
I noticed that on WSL2 /etc/environment is not getting parsed even though Linux-PAM seems to be configured correctly. If I execute sudo login the /etc/environment is parsed. So it seems like there is something missing / wrong about how WSL handles the distribution.
Am I missing something obvious? Asking here because it seems like you know how to get Linux-PAM to properly work with WSL2.
Activity
eternalphane commentedon Dec 1, 2022
Here's a workaround to start WSL in PAM session from Windows Terminal:
~/.bashrc
~/.local/bin/wsl-login
~/.local/sbin/wsl-login-helper
/etc/sudoers.d/wsl-login-helper
command line setting in Windows Terminal