FileSystemProvider: no way of handling permissions issues
See original GitHub issueRefs: https://github.com/Microsoft/vscode/issues/48421
Setup:
- clone https://github.com/bpasero/remote-fs
- F5
- click “Refresh” in the explorer
- you should see the current working directory as a remote folder using the file system provider for scheme
datei://
I can think of 2 reasons why a permission error raises:
- user needs elevated rights to change a file or folder
- a file can be readonly (e.g. Windows) and to save it you need to first remove the readonly flag
Currently there does not seem to be a way to signal a) to save as elevated user or b) to remove the readonly flag.
I am not sure how relevant this is for any other file system provider that does not have these concepts but this is something our file service can do (via the options overwriteReadonly
and writeElevated
).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:407
- Comments:173 (4 by maintainers)
Top Results From Across the Web
chrome.fileSystemProvider - Chrome Developers
Use the chrome.fileSystemProvider API to create file systems, that can be accessible from the file manager on Chrome OS. Permissions. fileSystemProvider.
Read more >Filesystem Security - Manual - PHP
There are two important measures you should take to prevent these issues. Only allow limited permissions to the PHP web user binary. Check...
Read more >"Access Denied" or other errors when you access or work with ...
Use the method for your version of Windows. Note You may not always receive an “Access Denied” error message for these kinds of...
Read more >Troubleshoot Permission Issues - Bitnami Documentation
A permission issue occurs when an application (or system user) is performing an unauthorized operation in the filesystem. Bitnami stacks are built with ......
Read more >How can I exclude all "permission denied" messages from ...
Use: find . 2>/dev/null > files_and_folders. This hides not just the Permission denied errors, of course, but all error messages.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was very excited to discover SSH-Remote in vscode, thinking it could replace my (limited) vi skills. But, like the OP, I need to be able to sudo to change config files in places like /etc. The audience for this feature is admins who are not necessarily coders. For these kinds of users, who are administering production systems, the option of enabling root is a non-starter. I hope the vscode team finds a way to implement the ability to sudo remotely. That would make the system a killer remote admin environment.
I also need this feature to edit config files under /etc/…