Open rgl opened 1 year ago
@rgl It seems that the install script is failing to repair the permissions for C:\ProgramData\ssh because that folder has a file system right that is not listed in the FileSystemRights Enum. I was able to work around that by manually removing access to the "CREATOR OWNER" Principal from the folder. Can you give that a try and let me know if that works? For now I'll continue to investigate if we can fic the scripts.
I ended up using another workaround, I've deleted the C:\ProgramData\ssh
directory before the install. In my case, this is even more appropriate than having any kind of configuration lingering around.
@vthiebaut10 for the record, I fixed it in https://github.com/jenkinsci/docker-ssh-agent/pull/403 with the following commands to remove the CREATOR OWNER unrecognized file system right:
icacls 'C:\ProgramData\ssh' /inheritance:d
icacls 'C:\ProgramData\ssh' /remove 'CREATOR OWNER'
Prerequisites
Steps to reproduce
C:\Program Files\OpenSSH
install-sshd.ps1 -Confirm:$false
You can find my vagrant environment at https://github.com/rgl/openssh-server-windows-vagrant/blob/wip/provision.ps1#L26
Expected behavior
Actual behavior
Error details
No response
Environment data
Version
v9.1.0.0p1-Beta
Visuals
No response