Enable passwordless sudo to run programs on the Raspberry Pi without providing a password.
xxxxxxxxxx
sudo nano /etc/sudoers
Enable passwordless sudo access by adding the following command:
xxxxxxxxxx
<user name> ALL=(ALL:ALL) NOPASSWD:ALL
For example, to provide passwordless sudo access to user dofbot, enter the following command:
xxxxxxxxxx
dofbot ALL=(ALL:ALL) NOPASSWD:ALL
To save changes, press Ctrl+x on your keyboard.
For these changes to take effect, restart the Raspberry Pi by entering the following command.
xxxxxxxxxx
sudo reboot