Ubuntu 20.10
我在 中使用WSL
,更改 时出现问题ulimit -n
。我尝试了几种方法,其中一种方法需要在和文件session required pam_limits.so
中添加行。之后我无法再使用。始终出现相同的错误:/etc/pam.d/common-session-noninteractive
/etc/pam.d/common-session
sudo
sudo: pam_open_session: Module is unknown
sudo: policy plugin failed session initialization
su
模式也不起作用:
nosheyakku@DESKTOP-GL13L32:/mnt/c/Users/nosheyakku$ su
Password:
su: Authentication failure
尝试更改密码:
nosheyakku@DESKTOP-GL13L32:/mnt/c/Users/nosheyakku$ passwd
Changing password for kshnkvn.
Current password:
New password:
Retype new password:
Password unchanged
New password:
Retype new password:
Password unchanged
New password:
Retype new password:
Password unchanged
passwd: Authentication token manipulation error
passwd: password unchanged
nosheyakku@DESKTOP-GL13L32:/mnt/c/Users/nosheyakku$ sudo whoami
[sudo] password for kshnkvn:
sudo: pam_open_session: Module is unknown
sudo: policy plugin failed session initialization