summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-11-29 17:34:13 +0000
committerColin Watson <cjwatson@debian.org>2015-11-29 17:34:13 +0000
commit18a9bd1867ee6fb9d913515773b322a279759b5d (patch)
tree84039e754648d919d08108dcbc24b92f90d7c758 /debian/openssh-server.postinst
parent0b372585c0026f78676f1414510ec9f87a383803 (diff)
Change "PermitRootLogin without-password" to the new preferred spelling of "PermitRootLogin prohibit-password" in sshd_config, and update documentation to reflect the new upstream default.
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index 9e8516ca7..72e993d0a 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -199,7 +199,7 @@ LogLevel INFO
199 199
200# Authentication: 200# Authentication:
201LoginGraceTime 120 201LoginGraceTime 120
202PermitRootLogin without-password 202PermitRootLogin prohibit-password
203StrictModes yes 203StrictModes yes
204 204
205RSAAuthentication yes 205RSAAuthentication yes
@@ -312,7 +312,11 @@ if [ "$action" = configure ]; then
312 if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \ 312 if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \
313 [ "$(get_config_option PermitRootLogin)" = yes ] && 313 [ "$(get_config_option PermitRootLogin)" = yes ] &&
314 db_get openssh-server/permit-root-login && [ "$RET" = true ]; then 314 db_get openssh-server/permit-root-login && [ "$RET" = true ]; then
315 set_config_option PermitRootLogin without-password 315 set_config_option PermitRootLogin prohibit-password
316 fi
317 if dpkg --compare-versions "$2" lt-nl 1:7.0p1-1 && \
318 [ "$(get_config_option PermitRootLogin)" = without-password ]; then
319 set_config_option PermitRootLogin prohibit-password
316 fi 320 fi
317fi 321fi
318 322