Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code permission denied wsl #85778

Closed
patrickmaciel opened this issue Nov 28, 2019 · 1 comment
Closed

code permission denied wsl #85778

patrickmaciel opened this issue Nov 28, 2019 · 1 comment

Comments

@patrickmaciel
Copy link

patrickmaciel commented Nov 28, 2019

Hi guys.

First: I know permission denied is a "linux thing", but because I do not know how to reinstall the vscode remote server, I post the issue here.


In the first time, when I install Vscode Extension Remote WSL and open the Ubuntu Bash on Windows 10, works great.

Then I make some configurations in /etc/wsl.conf to make my Ubuntu ser set the user home folder as a ubuntu user home folder.

/etc/wsl.conf

[automount]
enabled=true
root = /
options="metadata,uid=1000,gid=1000,umask=22,fmask=111"

After that, the command code in Ubuntu/Bash always return permission denied.

And I cant reinstall the VSCode Remote Server. I try to reinstall the extension on Vscode but I cant force the reinstall of vscode remote server.

  1. How can I uninstall vscode remote server?
  2. How can I manually install vscode remote server?
  3. Where is the installation directory?

  • VSCode Version: 1.40.2
  • OS Version: Windows 10, 1909, 18363.476

Steps to Reproduce:

  1. Open Ubuntu Bash / WSL
  2. Go to some folder
  3. Type code .
  4. Get permission denied

image

image

@patrickmaciel
Copy link
Author

I fix the problem.

Was related to /etc/wsl.conf.

I update the file with other permissions and now everything works great.

[automount]
enabled=true
root = /
options="metadata,uid=1000,gid=1000,umask=002,dmask=002,fmask=002"

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant