Windows 11 - WSL
Windows 11 - WSL
Disable Windows Commands through WSL Distro
Create the following file if not already created:
1
sudo nano /etc/wsl.conf
Add the following to
wsl.conf
:1 2 3
[interop] enabled = false appendWindowsPath = false
Restart WSL Distro
1
wsl --shutdown
Allow Network Tools (Ping)
1
sudo setcap cap_net_raw+p /bin/ping
Or you can use:
1
sudo chmod u+s /bin/ping
This post is licensed under CC BY 4.0 by the author.