Skip to content

Commit

Permalink
Don't ask for password on sudo for pi user
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjust authored Jul 20, 2024
1 parent 9f053d1 commit ec7b037
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install_opi5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ else
usermod -a -G sudo pi
mkdir /home/pi
chown -R pi /home/pi
# Don't ask for password on sudo for pi user, as on Raspberry Pi
echo 'pi ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/010_pi-nopasswd
chmod 0440 /etc/sudoers.d/010_pi-nopasswd
fi
echo "pi:raspberry" | chpasswd

Expand Down

0 comments on commit ec7b037

Please sign in to comment.