summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rebischke <chris@shibumi.dev>2020-05-10 02:19:02 +0200
committerChristian Rebischke <chris@shibumi.dev>2020-05-10 02:20:53 +0200
commita4731dcbfc228dd84710c7b89cd8d8d1f83a7fe3 (patch)
treebe159a13a76abfbca265a7bef57ee68a834caff2
parentb7bfe15c3c45f4efd77982fde9f34c1da5c21397 (diff)
lock root account via setting an invalid password
-rw-r--r--http/install-common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/http/install-common.sh b/http/install-common.sh
index 19b188d..b674620 100644
--- a/http/install-common.sh
+++ b/http/install-common.sh
@@ -94,6 +94,9 @@ sed -i -e 's/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=1/' /etc/default/grub
sed -i -e 's/^GRUB_CMDLINE_LINUX=.*$/GRUB_CMDLINE_LINUX="net.ifnames=0"/' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
+# lock root account
+usermod -p "*" root
+
if declare -f post >/dev/null; then
post
fi