shell script problem , sudo mount command

cat test.sh

sudo mount -t vfat /dev/sda7 /media/Ddrive

If i double click the test.sh file and select run in terminal then the terminal prompts for password.
How can i avoid typing password?

Or if i double click test.sh file and select run then nothing happens.

What i'm trying "Double click and mount the partition"
Using ubuntu.

If you want to not have to supply a password, you need to change your sudoers file.

username ALL=/sbin/mount 

That should do it, otherwise try:

username ALL=/sbin/mount -t vfat /dev/sda7 /media/Ddrive

Thank you.
Un-commenting # %sudo ALL=NOPASSWD: ALL it also works.

Kind of a security risk... but whatever floats your boat