Skip to content

Commit a4731dc

Browse files
committed
lock root account via setting an invalid password
1 parent b7bfe15 commit a4731dc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

http/install-common.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ sed -i -e 's/^GRUB_TIMEOUT=.*$/GRUB_TIMEOUT=1/' /etc/default/grub
9494
sed -i -e 's/^GRUB_CMDLINE_LINUX=.*$/GRUB_CMDLINE_LINUX="net.ifnames=0"/' /etc/default/grub
9595
grub-mkconfig -o /boot/grub/grub.cfg
9696

97+
# lock root account
98+
usermod -p "*" root
99+
97100
if declare -f post >/dev/null; then
98101
post
99102
fi

0 commit comments

Comments
 (0)