I executed the following commands to set up a guest account.
sudo adduser guest sudo chmod g+w /home/guest sudo chmod o-rwx /home/* sudo usermod -aG guest pi
Then I put two working self executable shell scrips in the guest Desktop folder.
"chmod +x /home/guest//Desktop/xx"
to make them executable from my Pi group.
I logged into guest, double click on the.sh file I get the "Execute in terminal" button but when I click on it, the terminal opens with; "(sudo) password for guest:"
One script is for avrdude.
#!/bin/bash sudo avrdude -c linuxgpio -F -p atmega328p -v -U flash:w:/home/pi/xxxx
The other is just a shutdown file;
#!/bin/bash sudo shutdown -h now
Update with info from comments:
What I am trying to do is to limit the user to execute the two scripts by clicking on them only. They need to program hundreds of printed circuit boards with the first .sh file, then, when finished for the day shutdown the Pi with the second. I'm wondering if there is a way to set the permission (just on the two above .sh files) so they alone have sudo permissions and work as they do in my Pi home folder.