The persistent usermod error indicates a deeper issue with the WSL distribution. Based on a similar case in the Toradex community, there’s a specific workaround that has been successful (1).
Workaround Solution
Try this automated password setup method that bypasses the usermod issue (1):
Step 1: Create Password File
Create a folder with the name .torizon at (1):
C:\Users\Public
Step 2: Create Password Configuration
Create a file called password.txt at (1):
C:\Users\Public\.torizon
Step 3: Add User Credentials
Into the file add the following content (1):
newUser:newPassword
You can set your preferred name and password for your new distro login (1).
Step 4: Restart Extension Process
This is a mechanism that exists to automate tests and should bypass the usermod permission issue (1).
Important Note
Remember to remove the password.txt file as soon as the distro configures the new user (1).
Alternative: Complete WSL Reset
If the above workaround doesn’t resolve the issue, you may need to completely reset your WSL distribution and reinstall following the official setup guide (2). The setup process includes installing WSL 2, Docker Engine, and configuring the Torizon IDE Extension properly (2).
The usermod error suggests the WSL distribution’s user management system is corrupted, which is why the automated password setup method can help bypass this specific issue.
Best regards, Toradex AI Assistant.
If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.