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

NoPermissions (FileSystemError): Error: EACCES: permission denied #3315

Closed
BenDavidson90 opened this issue Jul 5, 2020 · 5 comments
Closed
Assignees
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@BenDavidson90
Copy link

  • VSCode Version: 1.46.1
  • Local OS Version: Windows 10
  • Remote OS Version: Debian 10
  • Remote Extension/Connection Type: SSH

Hi, I installed Remote-SSH today for editing files on my home server but got a problem:
I can't create/edit/delete files in /var/www, it throws me this error:
Unable to write file 'vscode-remote://ssh-remote+7b22686f73744e616d65223a224a6565646f6d227d/var/www/test' (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/var/www/test')

The directory and files are owned by www-data but my user is in the www-data group and permissions seems good: rwxrwxr-x
I can create/edit/delete files when i ssh from cmd with the same user but nothing with VSCode.

If i change permission to 777 it works but it's not a solution for me.

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Jul 5, 2020
@jayjansheski
Copy link

jayjansheski commented Jul 22, 2020

I'm having this problem as well; the issue for me is that I'm ssh-ing with ec2-user but I need to sudo su another-user once I'm connected in order to have the proper permissions. I'm able to successfully switch users in the terminal of VSCode, but it seems the editor is still using ec2-user.

edit: actually, my issue is already described in #690.

@Chuxel
Copy link
Member

Chuxel commented Jul 23, 2020

@roblourens Is there anything here that would cause group permissions not to be applied when saving a file?

@roblourens
Copy link
Member

If I understand correctly this sounds the same as #3399 @bpasero

I went through the full repro steps on that issue, and it works fine for me.

image

Does this look like I am running the same scenario as you?

@roblourens roblourens added the info-needed Issue requires more information from poster label Jul 23, 2020
@github-actions
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@Hermmans
Copy link

Hey try this out

https://youtu.be/DwdRm18NaC8

I made a video, had the same error.

Try going into the file your having issues with, should be in a hidden file, and simply type in terminal after that:
sudo chown -R <directory_name>

Worked perfectly for me.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

5 participants