summaryrefslogtreecommitdiff
path: root/debian/openssh-server.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.config')
-rw-r--r--debian/openssh-server.config8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/openssh-server.config b/debian/openssh-server.config
index 27594ad2d..883dbf41b 100644
--- a/debian/openssh-server.config
+++ b/debian/openssh-server.config
@@ -16,8 +16,12 @@ get_config_option() {
16 16
17if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \ 17if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \
18 [ "$(get_config_option PermitRootLogin)" = yes ]; then 18 [ "$(get_config_option PermitRootLogin)" = yes ]; then
19 db_input high openssh-server/permit-root-login || true 19 if [ "$(getent shadow root | cut -d: -f2)" = "!" ]; then
20 db_go 20 db_set openssh-server/permit-root-login true
21 else
22 db_input high openssh-server/permit-root-login || true
23 db_go
24 fi
21fi 25fi
22 26
23exit 0 27exit 0