Permission Error copying files into Ubuntu on Windows with Windows copy/paste

Solution 1:

You should not be manually copying data into the WSL installation from Windows - it will give you this permissions error when you do this. Rather, you should be copying from windows into WSL from within the WSL environment instead.

The Windows C drive is located at /mnt/c within WSL. If the scripts are located in C:\Users\username\My Documents\Python\ then you can do the following from within WSL to copy the scripts into the Ubuntu environment:

cp /mnt/c/Users/username/My\ Documents/Python/*.py ~

This will copy the data in and retain permissions so it works properly within the Windows subsystem for Linux. This also saves you from having to chmod typically.