From 762b384c4d55a03e02b76b9db3235446a61c665a Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 27 Mar 2018 18:10:50 +0200 Subject: [PATCH] Bugfixing --- bin/postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/postinst b/bin/postinst index 9da6316..bbca9d5 100644 --- a/bin/postinst +++ b/bin/postinst @@ -49,7 +49,9 @@ for stem in ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key ; do mv -v "${TMP_FILE}" "/etc/ssh/${fullname}" if [[ "${stem}" == "${fullname}" ]] ; then chown -v root:ssh_keys "/etc/ssh/${fullname}" - chmod -v 0750 "/etc/ssh/${fullname}" + chmod -v 0640 "/etc/ssh/${fullname}" + else + chmod -v 0644 "/etc/ssh/${fullname}" fi fi rm -f "${TMP_FILE}" -- 2.39.5