diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-02-15 22:26:00 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-15 23:36:35 +0300 |
commit | 875ce5912883adcadfb35a08717648cb70b0c9f5 (patch) | |
tree | 365486d7aae382b6d39bc05dfe0b6de80ffa235b /etc/nextcloudpi-config.d | |
parent | cac81ec0f062116931fc63a0a09e95360e58968a (diff) |
SSH: dont create user if it doesnt existv0.46.11
Diffstat (limited to 'etc/nextcloudpi-config.d')
-rw-r--r-- | etc/nextcloudpi-config.d/SSH.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/SSH.sh b/etc/nextcloudpi-config.d/SSH.sh index a20cafc8..1ffdc1da 100644 --- a/etc/nextcloudpi-config.d/SSH.sh +++ b/etc/nextcloudpi-config.d/SSH.sh @@ -36,7 +36,7 @@ configure() } # Change credentials - id "$USER_" &>/dev/null || useradd "$USER_" + id "$USER_" &>/dev/null || { echo "$USER_ doesn't exist"; return 1; } echo -e "$PASS_\n$CONFIRM_" | passwd "$USER_" || return 1 # Check for insecure default pi password ( taken from old jessie method ) @@ -64,6 +64,7 @@ configure() 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 } |