Skip to content

Commit

Permalink
disable insecure pi user
Browse files Browse the repository at this point in the history
  • Loading branch information
gderosa committed Dec 15, 2019
1 parent 54e5e64 commit 89f8f71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ cd $ONBOARD_ROOT
bash etc/scripts/platform/debian/setup.sh $ONBOARD_ROOT $ONBOARD_USER

bash modules/openvpn/etc/scripts/platform/debian/setup.sh $ONBOARD_ROOT $ONBOARD_USER

if id -u pi 2> /dev/null; then
echo 'Disabling password authentication for user "pi" (Raspberry PI).'
echo 'This default user, likely left with default password, is a security risk.'
echo "We have the user '$ONBOARD_USER' instead."
passwd -d pi
fi

0 comments on commit 89f8f71

Please sign in to comment.