cola
1
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.
chompy
2
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
cola
3
Thank you.
Un-commenting # %sudo ALL=NOPASSWD: ALL it also works.
chompy
4
Kind of a security risk... but whatever floats your boat