vscode-remote-release
vscode-remote-release copied to clipboard
Error while editing file - NoPermissions (FileSystemError): Error: EACCES: permission denied
- VSCode Version: 1.67.0
- Local OS Version: Windows 10
- Remote OS Version: v0.234.0
- Remote Extension/Connection Type: SSH
- Logs:
Steps to Reproduce:
- Have a remote host with two users (user1 & user2)
- Create a file where the owner of the file is user1
- Restrict write permission of the file to the owner or group only. (-
rw-rw-r) - Create a group and add both user
user1&user2and ensure that group is mapped to the above created file - Since user2 is part of the group, he should be able to edit the file.
- Connect to remote host using user2 from VSC, getting the permission denied error.
Checked user2 is able to edit the file through other ssh agents like putty, mobaxterm.
Does this issue occur when you try this locally?: NA Does this issue occur when you try this locally and all extensions are disabled?: NA
@bpasero not sure if you're the right person to ask for advice but I don't know in detail how our file editing works
The workbench core file service is not doing anything special with regards to permissions: it writes from the server process of the remote server and that one probably runs with some user and some set of permissions. In other words, the file service can only leverage permissions that it gets by running as part of the server process, so I feel this belongs in the area of how the server is started (i.e. from what user).
- VSCode Version: 1.67.0
- Local OS Version: Windows 10
- Remote OS Version: v0.234.0
- Remote Extension/Connection Type: SSH
- Logs:
Steps to Reproduce:
- Have a remote host with two users (user1 & user2)
- Create a file where the owner of the file is user1
- Restrict write permission of the file to the owner or group only. (-
rw-rw-r)- Create a group and add both user
user1&user2and ensure that group is mapped to the above created file- Since user2 is part of the group, he should be able to edit the file.
- Connect to remote host using user2 from VSC, getting the permission denied error.
Checked user2 is able to edit the file through other ssh agents like putty, mobaxterm.
Does this issue occur when you try this locally?: NA Does this issue occur when you try this locally and all extensions are disabled?: NA
similar issue. @Sanket-Tantia have you found any solution ?
Hi, same here. Does anybody have a solution for this? chown -R is not an option for me, I have to be able to save files from VSC over SSH by being part of the group which has rw permission to the file being saved (and the folder containing it)
Hi, same here. Does anybody have a solution for this? chown -R is not an option for me, I have to be able to save files from VSC over SSH by being part of the group which has rw permission to the file being saved (and the folder containing it)
same issue, have you found any solution? @k3net
Sharing the log from the Remote-SSH output channel might help. However there is probably not much that we can do to help here. The server should be started as whatever user was used to ssh to the remote.