diff options
author | Christian Rebischke <chris@shibumi.dev> | 2020-05-10 02:19:02 +0200 |
---|---|---|
committer | Christian Rebischke <chris@shibumi.dev> | 2020-05-10 02:20:53 +0200 |
commit | a4731dcbfc228dd84710c7b89cd8d8d1f83a7fe3 (patch) | |
tree | be159a13a76abfbca265a7bef57ee68a834caff2 | |
parent | b7bfe15c3c45f4efd77982fde9f34c1da5c21397 (diff) |
lock root account via setting an invalid password
-rw-r--r-- | http/install-common.sh | 3 |
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 |