Microsoft Windows [Version 10.0.18362.207]
WSL Ubuntu
passwd pauses and prompts user input for new password
Input field is skipped with the error "Authentication token manipulation error" and the password is unable to be changed.
Note: on the same machine, this process works on the standard WSL Bash terminal.
I don't have the _faintest_ idea why the Terminal might be affecting this. @benhillis do you have any idea what might cause this?
Yeah, we have no idea what's going on here.
I have been able to reproduce this on Windows 10.0.18362.239 with Debian 1-1-3-0_x64.
I also tried remounting root, to see if that would work, but I still had the same problem (wsl mount -rw -o remount /)
For anyone who needs a work around you can do something like this:
Create a file (Password.sh) with the following:
#!/bin/bash
echo -e "test1\ntest1" | passwd testuser
Then you need to copy the file to WSL, set it to executable, and then run the script:
wsl cp /mnt/c/Users/Administrator/Downloads/Password.sh
wsl chmod +x /Password.sh
wsl /Password.sh
Your command above required me root password (which I did not have).
Just execute on PowerShell wsl -u root passwd testuser and then type your testuser new password.
Reference:
https://docs.microsoft.com/pt-br/windows/wsl/user-support?redirectedfrom=MSDN#reset-your-linux-password
having similar issues, no idea why it started and it seems to appear randomly
The above answer by pellicano is the correct one!! The docs on how to do this are wrong - they don't have the testuser which is absolutely critical for this working.
Most helpful comment
Your command above required me root password (which I did not have).
Just execute on PowerShell
wsl -u root passwd testuserand then type yourtestusernew password.Reference:
https://docs.microsoft.com/pt-br/windows/wsl/user-support?redirectedfrom=MSDN#reset-your-linux-password