Solution:
Edit the file /etc/sudoers, and configure this sudo permission user (for example: sudoaccount) to use the sudo command without entering a password
sudoaccount@mydesktop:~$ sudo visudo
Add at the end of the file
sudoaccount ALL=(ALL:ALL) NOPASSWD: ALL
:wq save editing, exit