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.
Related:
I noticed that on WSL2
/etc/environmentis not getting parsed even though Linux-PAM seems to be configured correctly. If I executesudo loginthe/etc/environmentis 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.
Related: