Skip to content

Commit

Permalink
rasp section
Browse files Browse the repository at this point in the history
  • Loading branch information
gderosa committed Dec 15, 2019
1 parent 4673e33 commit 85ffb3e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,19 @@ bash etc/scripts/platform/debian/setup.sh $ONBOARD_ROOT $ONBOARD_USER

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


# Raspbian section

# Disable pi user, with its insecure default password...
if id -u pi 2> /dev/null; then # DO not show missing user error here...
if id -u $ONBOARD_USER > /dev/null; then # ...but so show it here!
echo 'Disabling/locking user "pi" (Raspberry) for security reasons.'
echo "We have the user '$ONBOARD_USER' instead."
passwd -l pi
fi
fi

# Apparently not enabled by default on Raspbian
# TODO: make it optional in order to be security-paranoid?
systemctl start ssh
systemctl enable ssh

0 comments on commit 85ffb3e

Please sign in to comment.