WSL Unable to write file

I’ve just set up WSL and VSCode on my windows machine, I’ve done my best to follow the instructions to the letter, but I am thrown this error every time I try to make an edit to my ruby scripts.


Could someone please lend a hand?

Holy hell!

After some internet digging, I found the solution to this issue and if any of you ever need it, here it is:
Enter the following commands into your linux terminal:

sudo su
sudo chown -R (replace with your linux username) (replace with your file path)


1 Like