Debian on WSL2 - not prompting for password

Hello!

I have installed Debian (version 12 Bookworm) on WSL2. I have both a root user and a regular user, and I’ve set passwords for both.
What I want is to prevent unauthorized users from making changes to the system.
When I start Debian using wsl -d Debian, I would like it to prompt for a password.

I tried changing the default user in wsl.conf, but even when switching to a different user, Debian still doesn’t ask for a password when starting.

Any ideas?

Posted May 15, 2025, 4:38 PM UTC

18
Loading comments…