-
Notifications
You must be signed in to change notification settings - Fork 801
Open
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
It appears that when logged in as a standard user (ie. non-admin privileges), the session is restricted in counterintuitive and non-consistent, with a standard console run cmd prompt, way.
At a high-level, this means changing to and directory listing various folder paths. For descriptive purposes, I'm citing the most standard one, C:\Users\Public.
Expected behavior
From just a Command Prompt (running cmd):
Microsoft Windows [Version 10.0.19045.6456]
(c) Microsoft Corporation. All rights reserved.
C:\Users\shaddy>hostname
computer-msw
C:\Users\shaddy>cd C:\Users\Public
C:\Users\Public>cacls C:\Users\Public /s
C:\Users\Public "D:PAI(A;OICI;FA;;;BA)(A;OICIIO;FA;;;CO)(A;OICI;FA;;;SY)(A;OICIIO;0x1301ff;;;IU)(A;;0x1200af;;;IU)(A;OICIIO;0x1301ff;;;SU)(A;;0x1200af;;;SU)(A;OICIIO;0x1301ff;;;S-1-5-3)(A;;0x1200af;;;S-1-5-3)"
Actual behavior
This is what I encounter with the latest Win32-OpenSSH, which to my surprise, upgraded the standard Windows 10 installed version (I had intended to run a secondary server on another TCP port).
From the ssh session:
Microsoft Windows [Version 10.0.19045.6456]
(c) Microsoft Corporation. All rights reserved.
shaddy@COMPUTER-MSW C:\Users\shaddy>hostname
computer-msw
shaddy@COMPUTER-MSW C:\Users\shaddy>cd C:\Users\Public
Access is denied.
shaddy@COMPUTER-MSW C:\Users\shaddy>cacls C:\Users\Public /s
C:\Users\Public
Access is denied.
shaddy@COMPUTER-MSW C:\Users\shaddy>sshd -V
OpenSSH_for_Windows_10.0p2 Win32-OpenSSH-GitHub, LibreSSL 4.2.0
shaddy@COMPUTER-MSW C:\Users\shaddy>Error details
shaddy@COMPUTER-MSW C:\Users\shaddy>cacls C:\Users\Public /s
C:\Users\Public
Access is denied.
shaddy@COMPUTER-MSW C:\Users\shaddy>Environment data
Not using powershell
Version
OpenSSH_for_Windows_10.0p2 Win32-OpenSSH-GitHub, LibreSSL 4.2.0
Visuals
No response
Metadata
Metadata
Assignees
Labels
No labels