Skip to content

Commit b61014e

Browse files
committed
chmod remote file copied by ssh to be all-readable
This is for the case where remote umask is not world-readable: something like 0027 or even 0077 (not even group-readable). Remote file copied to /.well-known/ should perhaps be world-readable. It really depends on web server configuration but we assume the most common configuration.
1 parent 7a9ffb5 commit b61014e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

getssl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required.
516516
error_exit "problem copying file to the server using scp.
517517
scp $from ${to:4}"
518518
fi
519+
ssh "$servername" "chmod a+r $tofile"
519520
debug "userid $TOKEN_USER_ID"
520521
if [[ "$cert" == "challenge token" ]] && [[ ! -z "$TOKEN_USER_ID" ]]; then
521522
servername=$(echo "$to" | awk -F":" '{print $2}')

0 commit comments

Comments
 (0)