Skip to content

Commit 636d0da

Browse files
committed
armbian.sh: Make sure, passwordless login is disabled for root
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
1 parent f1b0ae4 commit 636d0da

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

bin/ncp-check-version

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22

3-
set -x
43
# update latest available version in /var/run/.ncp-latest-version
54

65
TEMPDIR="$( mktemp -d /tmp/ncp-check.XXXXXX || ( echo "Failed to create temp dir. Exiting" >&2; exit 1 ) )"

bin/ncp-dist-upgrade.d/debian-11.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ then
5656
fi
5757
apt-get full-upgrade -y
5858

59+
apt-get install -y --no-install-recommends exfatprogs
5960
restore_maintenance_mode
6061
cfg="$(jq "." "$NCPCFG")"
6162
cfg="$(jq ".release = \"bookworm\"" <<<"$cfg")"

build/armbian/armbian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ systemctl disable ssh
4343
rm -f /etc/systemd/system/getty@.service.d/override.conf
4444
rm -f /etc/systemd/system/serial-getty@.service.d/override.conf
4545
rm -f /root/.not_logged_in_yet
46+
sed -i 's|^root::|root:x:|' /etc/passwd
4647

4748
basename "$IMG" | tee /usr/local/etc/ncp-baseimage
4849

ncp.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ EOF
246246
EOF
247247

248248
echo '
249-
NCP is not activated yet. Please enter this instances local IP address in your webbrowser to complete activation.' >> /etc/issue
249+
NCP is not activated yet. Please enter https://nextcloudpi.local or this instance'"'"'s local IP address in your webbrowser to complete activation.
250+
' >> /etc/issue
250251
chmod a+x /etc/update-motd.d/*
251252

252253
## HOSTNAME AND mDNS

updates/1.54.0.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
if getent passwd "$LOGNAME" | grep -e 'root' | grep -e '/usr/sbin/nologin'
4+
then
5+
chsh -s /bin/bash root
6+
passwd -l root
7+
fi

0 commit comments

Comments
 (0)