Vscode-remote-release: Failed to save file, EACCESS permision denied

Created on 22 Jul 2019  路  1Comment  路  Source: microsoft/vscode-remote-release

Failed to save 'file.js': Unable to write file (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/opt/path/to/folder/file.js')

  • VSCode Version: 1.36.1
  • Local OS Version: Widnows 10
  • Remote OS Version: Red Hat 4.8.5-16.0.3
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. Connect to remote host
  2. Change a file and try to save it

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

Worth noting I am working behind an enterprise proxy/firewall, however the ssh tunnel is successfully established as seen in the output console, port 38473 is successfully forwarded.

I can successfully change the file form the temrinal via nano or vim, saving from VS code however throws the above mentioned error.

Most helpful comment

I was logged in with a user that didn't have access to change folder. Had to change user as below and then it worked.

sudo chown -R myuser /path/to/folder

>All comments

I was logged in with a user that didn't have access to change folder. Had to change user as below and then it worked.

sudo chown -R myuser /path/to/folder

Was this page helpful?
0 / 5 - 0 ratings