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:
authorTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-09-30 13:32:50 +0300
committerTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-09-30 13:32:50 +0300
commit0759aeaaae985f97d458d79253b2455bd047d9dd (patch)
treeab3bd204737b5731c09d2e02f4abc1c30b14d2a6
parentc5c87300f5db39f9e3c4de9dbc55c4853ee9c300 (diff)
SSH.sh: Reenable pi user if selected in SSH
-rw-r--r--bin/ncp/NETWORKING/SSH.sh3
-rw-r--r--etc/ncp-config.d/dnsmasq.cfg2
2 files changed, 4 insertions, 1 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
diff --git a/etc/ncp-config.d/dnsmasq.cfg b/etc/ncp-config.d/dnsmasq.cfg
index 594023bf..f14da6fc 100644
--- a/etc/ncp-config.d/dnsmasq.cfg
+++ b/etc/ncp-config.d/dnsmasq.cfg
@@ -3,7 +3,7 @@
"name": "Dnsmasq, to serve names of local machines which are not in the global DNS",
"title": "dnsmasq",
"description": "DNS server with cache",
- "info": "Remember to point your PC and devices DNS or\nyour router DNS to your Raspberry Pi IP",
+ "info": "Remember to point your PC and devices DNS or\nyour router DNS to your NCP IP",
"infotitle": "",
"params": [
{