-
Notifications
You must be signed in to change notification settings - Fork 781
OWNER RIGHTS
not allowed on identity file ACL, even if owner is in Administrators
#2317
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
Comments
To add the nuance that has led us to this point, it turns out that if you create an ACL as |
Hey @tgauth, are there any updates you can share regarding this ask?
|
Hey @tgauth , any updates on the Win32-OpenSSH side regarding the same ask from above?
|
Here is a script that can be used as a potential work around https://github.com/PowerShell/openssh-portable/blob/latestw_all/contrib/win32/openssh/FixUserFilePermissions.ps1 It is also included in the release zip payload which includes the modules necessary to run it if you don't want to clone the whole repo. https://github.com/PowerShell/Win32-OpenSSH/releases/download/v9.8.1.0p1-Preview/OpenSSH-Win64.zip We are going to have to evalutate the security implications with this kind of change before we can formally commit to adding this. It would be helpful if you can provide additional scenarios where this addition would be helpful. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Steps to reproduce
When a private key identity file has the
OWNER RIGHTS
group permission attached and the file is owned by an administrator, the OpenSSH client fails with a warning that the file's permissions are too open:My understanding is that only administrators and System can have access to the key file. It looks like the client explicitly checks for the admin and system SIDs, but does not follow an owner rights SID and checks that the file is owned by an admin. I was curious if maintainers would be open to allowing
OWNER RIGHTS
provided that the owner is an admin.Related:
mkdir(mode=0o700)
on Windows withOWNER RIGHTS
python/cpython#128038Expected behavior
Actual behavior
Error details
No response
Environment data
Version
9.5
Visuals
The text was updated successfully, but these errors were encountered: