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
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp/NETWORKING/SSH.sh')
-rw-r--r--bin/ncp/NETWORKING/SSH.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ncp/NETWORKING/SSH.sh b/bin/ncp/NETWORKING/SSH.sh
index 182b5978..9092978b 100644
--- a/bin/ncp/NETWORKING/SSH.sh
+++ b/bin/ncp/NETWORKING/SSH.sh
@@ -38,6 +38,9 @@ configure()
id "$USER" &>/dev/null || { echo "$USER doesn't exist"; return 1; }
echo -e "$PASS\n$CONFIRM" | passwd "$USER" || return 1
+ # Reenable pi user
+ [[ "$USER" == "pi" ]] && usermod pi -s /bin/bash
+
# Check for insecure default pi password ( taken from old jessie method )
# TODO Due to Debian bug #1003151 with mkpasswd this feature is not working properly at the moment - https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1837456.html
#local SHADOW SALT HASH