Sample Header Ad - 728x90

WSL 2 (Debian) main user is not a sudoer: how to reset it?

2 votes
2 answers
5390 views
For some reason my main and only user in Debian (Windows Subsystem For Linux v2) **is not a sudoer any more**. sudo apt-get install myuser is not in the sudoers file I know I can add myself to sudoers via usermod -aG sudo myuser but how do that since I'm the only user? Also, If I try to run su to workaround this, my wsl password is not working.
Asked by dragonmnl (2419 rep)
Jun 9, 2020, 06:20 PM
Last activity: Jul 13, 2025, 11:32 AM