diff options
author | Darren Tucker <dtucker@dtucker.net> | 2023-02-24 13:44:13 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2023-02-24 13:44:13 +1100 |
commit | 0c5d4c843df5605b043a758d69f9a611ef63c479 (patch) | |
tree | 6e14fcda71f6ab0089cb4c597f7b54e6a5a0bfb8 /regress | |
parent | 6c9fc9d7a9f7abf82c3294d74e6d4a25735862ce (diff) | |
download | openssh-git-0c5d4c843df5605b043a758d69f9a611ef63c479.tar.gz |
Explicitly set permissions on user and host keys.
On cygwin, the umask might not be sufficient. Should fix tests on
Github runners.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/test-exec.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 325393ce..4091d3a3 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -674,6 +674,9 @@ for t in ${SSH_HOSTKEY_TYPES}; do # don't use SUDO for proxy connect echo HostKey $OBJ/$t >> $OBJ/sshd_proxy + + # explicitly set perms since cygwin inhertited perms might be too open + chmod 600 $OBJ/$t $OBJ/host.$t done chmod 644 $OBJ/authorized_keys_$USER |