diff options
Diffstat (limited to 'debian/openssh-server.config')
-rw-r--r-- | debian/openssh-server.config | 8 |
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 | ||
17 | if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \ | 17 | if 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 | ||
21 | fi | 25 | fi |
22 | 26 | ||
23 | exit 0 | 27 | exit 0 |