question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileSystemProvider: no way of handling permissions issues

See original GitHub issue

Refs: 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:open
  • Created 5 years ago
  • Reactions:407
  • Comments:173 (4 by maintainers)

github_iconTop GitHub Comments

197reactions
yobyotcommented, Aug 22, 2019

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.

89reactions
jcvtieckcommented, Sep 30, 2019

I also need this feature to edit config files under /etc/…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found