-
Notifications
You must be signed in to change notification settings - Fork 282
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
Permission Denied While Editing Files on a Romote Device #8269
Comments
If you connect via the terminal to this remote on the same user and then try and edit this file does that work successfully? |
@eleanorjboyd If I connect to Virtual Machine via terminal and use Vim to edit files as sudo user I can edit files without any problem. |
Does the node.js server process run under the same user as the terminal? Because in the end the file will be written to on behalf of the server node.js process. We use |
@mfatih7 do you use a workflow where you change users when connecting manually to this remote (connect as user1, edit files as user2)? That scenario may not work properly here. You can check this by opening a terminal in the Remote-SSH window and checking whether you are the same user as when connecting manually. Please also check whether you can edit the file with vim in the Remote-SSH vscode terminal as well. |
Thank you for the answer I do not change users. Somehow vscode editor does not have sudo privileges while editing files. |
Thanks for the clear explanation. We don't support this scenario currently. This is tracked in either microsoft/vscode#48659 or #690 |
Hello
I am trying to use VS Code and Remote Explorer extension to connect to Virtual Machine on the Google Cloud Platform.
After I connect to the Virtual Machine I try to edit files on the Virtual Machine with VSCode File Explorer.
While saving the file I get the error below.
How can I do all of my operations on the remote device as sudo user?
The text was updated successfully, but these errors were encountered: