Restrictions to OneDrive(/Cloud Sync) files within SSH sesssion. #2424
Unanswered
shaddybaddah
asked this question in
Q&A
Replies: 1 comment
-
Can you expand on why the process privilege is not relevant? To make sure I understand the issue correctly, it repros in an ssh session with the following command: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I should put out, that I originally raised this against the Cygwin SSHD. I highlighted Win32-OpenSSH as the control test/example when I did so. But I subsequently have discovered this "control" was very limited, and the same problem affects Win32-OpenSSH.
Basically I experience "Errno 22"/"Permission Denied" when I try to access OneDrive files that have not yet been "Cloud Sync'ed" and would normally trigger that if accessed. But only when running, what I assume are "forked" commands.
My Windows 10 or 11 "stock/OEM" OpenSSH server is default configured. And SSH sessions run cmd.exe as the shell. I believe the TYPE command is a builtin to cmd.exe:
Running TYPE against a non-cached OneDrive file seems to trigger a Cloud Sync/download correctly. But no "spawned" commands seem to work, regardless of if they are native/Cygwin/Msys etc. The output at the bottom probably explains best (you can safely ignore the "offset" location of the OneDrive folder. I have tried this with the more orthodox/default location C:\Users\shaddy\OneDrive, and it's the same situation)
Just looking for any hint for why this may be. I considered that the difference between INTERACTIVE vs NETWORK process privilege might be involved, but from a recent bug report I raised, I don't feel this would be relevant.
For full disclosure, I understand that some may say "why do you do that", but I like to keep some git workdirs in OneDrive, with the .git configured to be outside. Adhoc changes to scripts, or new scripts, can then be immediately retained, ahead of being committed on the "master" workstation.
But git hits issues with this as well and impairs my ideal way of working. To pair back the failure example (as git spawns various commands, and I think some perl sometimes???), I have given a simpler example with just python.
Beta Was this translation helpful? Give feedback.
All reactions