Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-03-04 14:55:44 +0300
committernachoparker <nacho@ownyourbits.com>2018-03-04 18:59:08 +0300
commitb346cbe89b24c6c62863cfcfd6e40078faba6098 (patch)
treea22d9b41d3774ea7e39db671e404af9dd222d514 /etc
parent18e35dfdbb5a828c646a6c0e24a394840123cfbf (diff)
disable ncp user loginv0.46.38
Diffstat (limited to 'etc')
-rw-r--r--etc/nextcloudpi-config.d/SSH.sh16
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