diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-10-03 23:33:26 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-10-04 00:23:17 +0300 |
commit | 9975742ff32dcafa8473dfe9569e8ce1cbf1c33d (patch) | |
tree | 04f724bdde302f635e7454231dce2bd4c8686413 | |
parent | ddc04e618770bb799eb2c6ea239cf2e8ebc0b785 (diff) |
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r-- | bin/ncp/NETWORKING/SSH.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ncp/NETWORKING/SSH.sh b/bin/ncp/NETWORKING/SSH.sh index 9092978b..62242e97 100644 --- a/bin/ncp/NETWORKING/SSH.sh +++ b/bin/ncp/NETWORKING/SSH.sh @@ -15,7 +15,7 @@ is_active() systemctl -q is-enabled ssh &>/dev/null } -configure() +configure() { [[ $ACTIVE != "yes" ]] && { systemctl stop ssh @@ -29,8 +29,8 @@ configure() echo "Refusing to use the default Raspbian user and password. It's insecure" return 1 } - [[ "$USER" == "root" ]] && [[ "$PASS" == "1234" ]] && { - echo "Refusing to use the default Armbian user and password. It's insecure" + [[ "$USER" == "root" ]] && { + echo "Refusing to use the root user for SSH. It's insecure" return 1 } @@ -39,7 +39,7 @@ configure() echo -e "$PASS\n$CONFIRM" | passwd "$USER" || return 1 # Reenable pi user - [[ "$USER" == "pi" ]] && usermod pi -s /bin/bash + usermod "$USER" -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 |