diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-03-04 14:55:44 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-03-04 18:59:08 +0300 |
commit | b346cbe89b24c6c62863cfcfd6e40078faba6098 (patch) | |
tree | a22d9b41d3774ea7e39db671e404af9dd222d514 /etc/nextcloudpi-config.d | |
parent | 18e35dfdbb5a828c646a6c0e24a394840123cfbf (diff) |
disable ncp user loginv0.46.38
Diffstat (limited to 'etc/nextcloudpi-config.d')
-rw-r--r-- | etc/nextcloudpi-config.d/SSH.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/etc/nextcloudpi-config.d/SSH.sh b/etc/nextcloudpi-config.d/SSH.sh index 10d56747..d001ee38 100644 --- a/etc/nextcloudpi-config.d/SSH.sh +++ b/etc/nextcloudpi-config.d/SSH.sh @@ -58,22 +58,6 @@ configure() } } - # Check for insecure default ncp password ( taken from old jessie method ) - local SHADOW="$( grep -E '^ncp:' /etc/shadow )" - test -n "${SHADOW}" && { - local SALT=$(echo "${SHADOW}" | sed -n 's/ncp:\$6\$//;s/\$.*//p') - local HASH=$(mkpasswd -msha-512 ownyourbits "$SALT") - - grep -q "${HASH}" <<< "${SHADOW}" && { - systemctl stop ssh - systemctl disable ssh - echo "The user ncp is using the default password. Refusing to activate SSH" - echo "You can change this password from nc-passwd" - echo "SSH disabled" - return 1 - } - } - # Enable chage -d 0 "$USER_" systemctl enable ssh |