3 ms·
I see, so basically I can't do this in WSL1 /usr/bin/bindfs --force-user=johnchristopher --force-group=johnchristopher --create-for-user=www-data --create-
by johnchristopher 7y ago
I see, so basically I can't do this in WSL1
/usr/bin/bindfs --force-user=johnchristopher --force-group=johnchristopher --create-for-user=www-data --create-for-group=www-data /home/johnchristopher/.docker-data/volumes/web/_data /home/johnchristopher/Dev/Web
So that I can write code without messing up permissions (and map xdebug path to ~/Dev/Web) ?
But it could be done in WSL2 (keeping permissions intact in the volume while being able to edit them outside) ?
- WorldMaker 7y agoI think that should work fine in WSL1. You just need to know that inside the WSL file system /home is not Windows %Home% (C:\Users\ or localized equivalent) and you want to use the \\wsl$ path for working with /home from Windows applications. The easiest way to tell if your WSL1 version is setup to provide \\wsl$ paths is to try `explorer.exe .` in the console in the directory you want the \\wsl$ path to. If it opens somewhere random in %System32% or %LocalAppData% then it doesn't support it (request an upgrade from your IT Admin).
- johnchristopher 7y agoThanks, I'll be trying that as soon as I can.