diff --git a/install_opi5.sh b/install_opi5.sh index 000d00e..4f313d9 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -6,6 +6,8 @@ else echo "creating pi user" useradd pi -m -b /home -s /bin/bash usermod -a -G sudo pi + echo 'pi ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/010_pi-nopasswd >/dev/null + chmod 0440 /etc/sudoers.d/010_pi-nopasswd fi echo "pi:raspberry" | chpasswd