Skip to content

Windows 11 - WSL

Disable Windows Commands through WSL Distro

  1. Create the following file if not already created:
sudo nano /etc/wsl.conf
  1. Add the following to wsl.conf:

    [interop]
    enabled = false
    appendWindowsPath = false
    
  2. Restart WSL Distro

    wsl --shutdown
    

Allow Network Tools (Ping)

sudo setcap cap_net_raw+p /bin/ping

Or you can use:

sudo chmod u+s /bin/ping