Skip to content

fix(windows): Use ACL instead of chmod#43

Merged
oschwartz10612 merged 1 commit intofosrl:mainfrom
LaurenceJJones:fix/windows-ssh-key-permissions
Mar 13, 2026
Merged

fix(windows): Use ACL instead of chmod#43
oschwartz10612 merged 1 commit intofosrl:mainfrom
LaurenceJJones:fix/windows-ssh-key-permissions

Conversation

@LaurenceJJones
Copy link
Copy Markdown
Member

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

Golang chmod function on windows does not alter ACL's to be 'user only read' it simply changes the read permissions, instead we must use specific windows callouts to set the permissions to be user only preventing ssh from complaining about weak permissions

How to test?

Needs testing on an actual window machine with limited admin permissions

Golang chmod function on windows does not alter ACL's to be 'user only read' it simply changes the read permissions, instead we must use specific windows callouts to set the permissions to be user only preventing ssh from complaining about weak permissions
@oschwartz10612 oschwartz10612 merged commit 8d166f7 into fosrl:main Mar 13, 2026
1 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants