Skip to content

Commit

Permalink
lock root account via setting an invalid password
Browse files Browse the repository at this point in the history
  • Loading branch information
shibumi committed May 10, 2020
1 parent b7bfe15 commit a4731dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http/install-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a4731dc

Please sign in to comment.