I have a shell script using some sudo
command. When I run this script from terminal - it asks me for password and runs with any problem. But when I try to run executable shell script form GUI (double click) it does not ask me for password - so does not work.
Example of my shell script:
c1=$(dmidecode -t 4 | grep ID | sed 's/.*ID://;s/ //g' | sha1sum | awk '{print $1}')
How to run script from GUI and pass all sudo
commands with no problem?
gksudo
orpkexec
. – muru Jun 22 '16 at 10:18