Skip to content

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

Open
LaurenceJJones wants to merge 1 commit intofosrl:mainfrom
LaurenceJJones:fix/windows-ssh-key-permissions
Open

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

Conversation

@LaurenceJJones
Copy link
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
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.

1 participant