Skip to content

Commit

Permalink
Merge pull request #4 from vemarsas/no-insecure-pi
Browse files Browse the repository at this point in the history
No insecure pi-user password login
  • Loading branch information
gderosa committed Dec 15, 2019
2 parents 54e5e64 + 1f59508 commit 0cae1e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ 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 # DO not show missing user error here...
if id -u pi $ONBOARD_USER > /dev/null; then # ...but so show it here!
echo 'Disabling password authentication for user "pi" (Raspberry PI).'
echo "We have the user '$ONBOARD_USER' instead."
passwd -d pi
fi
fi

0 comments on commit 0cae1e1

Please sign in to comment.